Skip to content

Commit

Permalink
Fix name and displayName in an ocm PROPFIND response
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Nov 19, 2024
1 parent 4f31fd9 commit 8bcc022
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-ocm-propfind.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion pkg/ocm/storage/received/ocm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit 8bcc022

Please sign in to comment.