From ea62b8e950a87cdfe8a6c0ea001aeb7b2621e346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 13 Aug 2021 16:36:49 +0200 Subject: [PATCH] fix owncloudsql GetMD 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-owncloudsql-getmd.md | 5 +++++ pkg/storage/fs/owncloudsql/owncloudsql.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/fix-owncloudsql-getmd.md diff --git a/changelog/unreleased/fix-owncloudsql-getmd.md b/changelog/unreleased/fix-owncloudsql-getmd.md new file mode 100644 index 0000000000..7f0d821204 --- /dev/null +++ b/changelog/unreleased/fix-owncloudsql-getmd.md @@ -0,0 +1,5 @@ +Bugfix: fix owncloudsql GetMD + +The GetMD call internally was not prefixing the path when looking up resources by id. + +https://github.com/cs3org/reva/pull/1993 \ No newline at end of file diff --git a/pkg/storage/fs/owncloudsql/owncloudsql.go b/pkg/storage/fs/owncloudsql/owncloudsql.go index c094744f45..744f835c19 100644 --- a/pkg/storage/fs/owncloudsql/owncloudsql.go +++ b/pkg/storage/fs/owncloudsql/owncloudsql.go @@ -575,7 +575,7 @@ func (fs *owncloudsqlfs) resolve(ctx context.Context, ref *provider.Reference) ( } p = filepath.Join(owner, p) } - return p, nil + return fs.toInternalPath(ctx, p), nil } if ref.GetPath() != "" {