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()),