From 908d729a514bf8005a18eab17725de568dfdae71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 12 Nov 2024 16:03:20 +0100 Subject: [PATCH] fix error type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/fix-download-consistency.md | 3 ++- pkg/storage/utils/decomposedfs/decomposedfs.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog/unreleased/fix-download-consistency.md b/changelog/unreleased/fix-download-consistency.md index 8661789061..f7d70087c4 100644 --- a/changelog/unreleased/fix-download-consistency.md +++ b/changelog/unreleased/fix-download-consistency.md @@ -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 diff --git a/pkg/storage/utils/decomposedfs/decomposedfs.go b/pkg/storage/utils/decomposedfs/decomposedfs.go index 23c7095f43..8b95640889 100644 --- a/pkg/storage/utils/decomposedfs/decomposedfs.go +++ b/pkg/storage/utils/decomposedfs/decomposedfs.go @@ -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 {