From beacc66e2b9c7440d7ef44e7eb58939dd5e8a2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 26 Aug 2024 14:54:34 +0200 Subject: [PATCH] ocm: return remote etag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/ocm-return-etag.md | 6 ++++++ pkg/ocm/storage/received/ocm.go | 1 + 2 files changed, 7 insertions(+) create mode 100644 changelog/unreleased/ocm-return-etag.md diff --git a/changelog/unreleased/ocm-return-etag.md b/changelog/unreleased/ocm-return-etag.md new file mode 100644 index 0000000000..a264dc8d44 --- /dev/null +++ b/changelog/unreleased/ocm-return-etag.md @@ -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 diff --git a/pkg/ocm/storage/received/ocm.go b/pkg/ocm/storage/received/ocm.go index ae7147a69e..0b1fea976d 100644 --- a/pkg/ocm/storage/received/ocm.go +++ b/pkg/ocm/storage/received/ocm.go @@ -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{