From bba486a2c82c6550b294c1517bc11b544323e111 Mon Sep 17 00:00:00 2001 From: David Christofas Date: Thu, 23 Feb 2023 11:58:11 +0100 Subject: [PATCH] add correct etag to empty shares jail in propfind responses --- changelog/unreleased/shares-propfind-etag.md | 6 ++++++ .../services/sharesstorageprovider/sharesstorageprovider.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/shares-propfind-etag.md diff --git a/changelog/unreleased/shares-propfind-etag.md b/changelog/unreleased/shares-propfind-etag.md new file mode 100644 index 0000000000..4264cb7ec6 --- /dev/null +++ b/changelog/unreleased/shares-propfind-etag.md @@ -0,0 +1,6 @@ +Bugfix: fix etag of "empty" shares jail + +Added the correct etag for an empty shares jail in PROPFIND responses. + +https://github.com/cs3org/reva/pull/3681 +https://github.com/owncloud/ocis/issues/5591 diff --git a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go index 3d566e2cc7..abd7e942ce 100644 --- a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go +++ b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go @@ -652,7 +652,7 @@ func (s *service) Stat(ctx context.Context, req *provider.StatRequest) (*provide } earliestShare := findEarliestShare(receivedShares, shareMd) var mtime *typesv1beta1.Timestamp - var etag string + etag := _defaultSharesJailEtag if earliestShare != nil { if info, ok := shareMd[earliestShare.GetId().GetOpaqueId()]; ok { mtime = info.Mtime