Skip to content

Commit

Permalink
Merge pull request #4926 from butonic/fix-error-type
Browse files Browse the repository at this point in the history
fix error type
  • Loading branch information
micbar authored Nov 12, 2024
2 parents cbef82f + 908d729 commit 66d7b44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changelog/unreleased/fix-download-consistency.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Bugfix: make etag always matche content on downloads
Bugfix: make etag always match content on downloads

We added an openReaderfunc to the Download interface to give drivers a way to guarantee that the reader matches the etag returned in a previous GetMD call.

https://github.com/cs3org/reva/pull/4926
https://github.com/cs3org/reva/pull/4923

2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/decomposedfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ func (fs *Decomposedfs) Download(ctx context.Context, ref *provider.Reference, o

n, err := fs.lu.NodeFromResource(ctx, ref)
if err != nil {
return nil, nil, errors.Wrap(err, "Decomposedfs: error resolving ref")
return nil, nil, err
}

if !n.Exists {
Expand Down

0 comments on commit 66d7b44

Please sign in to comment.