From 8bcc02231d1ef00e01a82f93ed71b67a6923ec5e Mon Sep 17 00:00:00 2001 From: Roman Perekhod Date: Wed, 20 Nov 2024 00:49:46 +0100 Subject: [PATCH] Fix name and displayName in an ocm PROPFIND response --- changelog/unreleased/fix-ocm-propfind.md | 6 ++++++ pkg/ocm/storage/received/ocm.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/fix-ocm-propfind.md diff --git a/changelog/unreleased/fix-ocm-propfind.md b/changelog/unreleased/fix-ocm-propfind.md new file mode 100644 index 0000000000..3b5e99fb03 --- /dev/null +++ b/changelog/unreleased/fix-ocm-propfind.md @@ -0,0 +1,6 @@ +Bugfix: Fix name and displayName in an ocm + +Fixed name and displayName in an ocm PROPFIND response + +https://github.com/cs3org/reva/pull/4963 +https://github.com/owncloud/ocis/issues/10582 diff --git a/pkg/ocm/storage/received/ocm.go b/pkg/ocm/storage/received/ocm.go index c76fe8141a..322cff6160 100644 --- a/pkg/ocm/storage/received/ocm.go +++ b/pkg/ocm/storage/received/ocm.go @@ -284,7 +284,7 @@ func convertStatToResourceInfo(ref *provider.Reference, f fs.FileInfo, share *oc Id: id, MimeType: mime.Detect(f.IsDir(), f.Name()), Path: name, - Name: name, + Name: filepath.Base(name), Size: uint64(f.Size()), Mtime: &typepb.Timestamp{ Seconds: uint64(f.ModTime().Unix()),