From c7786090445e036c28ce17aee761e05f713fef9d Mon Sep 17 00:00:00 2001 From: Paul Faure Date: Tue, 24 Feb 2026 23:07:58 -0500 Subject: [PATCH 1/2] fix: add ResourceID field to UploadReady event with file's node ID The UploadReady event's FileRef.ResourceId.OpaqueId is set to the space root ID (required for CS3 gateway path resolution via WalkPath). This means consumers that need the file's actual node ID for Graph API URLs get the space root instead. Add a separate ResourceID field (following the BytesReceived pattern) that carries the file's actual resource identifier with the correct OpaqueId set to session.NodeID(). Upstream: https://github.com/owncloud/reva/pull/XXXXX Co-Authored-By: Claude Opus 4.6 --- changelog/unreleased/fix-uploadready-resource-id.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 changelog/unreleased/fix-uploadready-resource-id.md diff --git a/changelog/unreleased/fix-uploadready-resource-id.md b/changelog/unreleased/fix-uploadready-resource-id.md new file mode 100644 index 00000000000..38a68e1b2bf --- /dev/null +++ b/changelog/unreleased/fix-uploadready-resource-id.md @@ -0,0 +1,12 @@ +Enhancement: Add ResourceID field to UploadReady event + +The UploadReady NATS event now includes a `ResourceID` field containing the +file's actual resource identifier (with the correct node OpaqueId). Previously, +only `FileRef` was available, whose `ResourceId.OpaqueId` is set to the space +root ID (required for CS3 gateway path resolution). Consumers that need the +file's unique identifier for Graph API or WebDAV operations can now use +`ResourceID.OpaqueId` directly. + +https://github.com/owncloud/ocis/pull/12060 +https://github.com/owncloud/ocis/issues/12056 +https://github.com/owncloud/reva/pull/547 From 4a2004784cbde8799ec3b379546231712292d9b5 Mon Sep 17 00:00:00 2001 From: Paul Faure Date: Fri, 13 Mar 2026 23:14:23 -0400 Subject: [PATCH 2/2] docs: add reva #560 link to changelog Co-Authored-By: Claude Opus 4.6 --- changelog/unreleased/fix-uploadready-resource-id.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog/unreleased/fix-uploadready-resource-id.md b/changelog/unreleased/fix-uploadready-resource-id.md index 38a68e1b2bf..349da7440db 100644 --- a/changelog/unreleased/fix-uploadready-resource-id.md +++ b/changelog/unreleased/fix-uploadready-resource-id.md @@ -10,3 +10,4 @@ file's unique identifier for Graph API or WebDAV operations can now use https://github.com/owncloud/ocis/pull/12060 https://github.com/owncloud/ocis/issues/12056 https://github.com/owncloud/reva/pull/547 +https://github.com/owncloud/reva/pull/560