Skip to content

Commit

Permalink
Merge pull request #4140 from kobergj/FixMissingEtagOnShareJail
Browse files Browse the repository at this point in the history
Fix missing etag in shares jail
  • Loading branch information
kobergj authored Aug 31, 2023
2 parents 8ba013d + a733b6f commit cb0897d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-missing-sharesjail-etag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Fix missing etag in shares jail

The shares jail can miss the etag if the first `receivedShare` is not accepted.

https://github.com/cs3org/reva/pull/4140
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ func findEarliestShare(receivedShares []*collaboration.ReceivedShare, shareInfo
}

switch {
case earliestShare == nil:
case earliestShare == nil && hasCurrentMd:
earliestShare = current
// ignore if one of the shares has no metadata
case !hasEarliestMd || !hasCurrentMd:
Expand Down

0 comments on commit cb0897d

Please sign in to comment.