Skip to content

fix: UploadReady FileRef uses SpaceID instead of NodeID#560

Merged
2403905 merged 1 commit intoowncloud:mainfrom
paul43210:fix/uploadready-fileref-nodeid
Mar 13, 2026
Merged

fix: UploadReady FileRef uses SpaceID instead of NodeID#560
2403905 merged 1 commit intoowncloud:mainfrom
paul43210:fix/uploadready-fileref-nodeid

Conversation

@paul43210
Copy link
Copy Markdown

Summary

  • FileRef.ResourceId.OpaqueId was set to session.SpaceID() instead of session.NodeID() in both the postprocessing event and the upload-finished callback. Every upload event reported the space root UUID as the file identifier instead of the actual file node ID.
  • FileRef.Path was redundant now that PR fix: add ResourceID field to UploadReady event #547 added the ResourceID field with the correct node reference. Removed it from both locations.

Related:

Test plan

  • go build ./pkg/storage/utils/decomposedfs/... passes
  • go test ./pkg/storage/utils/decomposedfs/... all tests pass
  • Verify UploadReady event consumers receive the correct file node ID

🤖 Generated with Claude Code

The UploadReady event and upload-finished callback both set
FileRef.ResourceId.OpaqueId to session.SpaceID() instead of
session.NodeID(). This means every upload event reports the space
root UUID as the file identifier. Additionally, the FileRef included
an unnecessary Path field that is redundant now that the ResourceID
field carries the correct node reference.

This fixes both issues:
- FileRef.OpaqueId: SpaceID() → NodeID()
- FileRef.Path: removed (consumers should use ResourceID)

owncloud/ocis#12056
owncloud#546
owncloud#547

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@2403905 2403905 merged commit bc96744 into owncloud:main Mar 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants