Skip to content

Commit

Permalink
add correct etag to empty shares jail in propfind responses
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Feb 23, 2023
1 parent 83c7b4d commit b9dce4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/shares-propfind-etag.md
Original file line number Diff line number Diff line change
@@ -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/owncloud/ocis/issues/5591
https://github.com/cs3org/reva/pull/3681
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9dce4a

Please sign in to comment.