Skip to content

Commit

Permalink
ocm: return remote etag
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Aug 26, 2024
1 parent 51e6e33 commit beacc66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/ocm-return-etag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: return etag for ocm shares

The ocm remote storage now passes on the etag returned in the PROPFIND response.

https://github.com/cs3org/reva/pull/4823
https://github.com/owncloud/ocis/issues/9534
1 change: 1 addition & 0 deletions pkg/ocm/storage/received/ocm.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func convertStatToResourceInfo(ref *provider.Reference, f fs.FileInfo, share *oc
Mtime: &typepb.Timestamp{
Seconds: uint64(f.ModTime().Unix()),
},
Etag: webdavFile.ETag(),
Owner: share.Creator,
PermissionSet: webdavProtocol.Permissions.Permissions,
Checksum: &provider.ResourceChecksum{
Expand Down

0 comments on commit beacc66

Please sign in to comment.