You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: move/copy to share subfolder fails with PROPFIND 404 (regression from v4→v7) #3374
Moving to the share root works correctly. Moving to subfolders is broken.
Root Cause
In useGetMatchingSpace.ts, getMatchingSpace() uses resource.storageId to find
the matching space. For a subfolder inside a share, storageId is derived as storageID$spaceID (by splitting fileId on !). However, the share space has id = storageID$spaceID!rootNodeID — so the lookup never matches.
The fallback then creates a broken share space with id = undefined
(because resource.remoteItemId is not set for subfolders), resulting in webDavPath = '/spaces' and destination URL /dav/spaces/<folderName>.
[OCISDEV-602]use spaceId instead of storageId in getMatchingSpace
The fix changes one line in packages/web-pkg/src/composables/spaces/useGetMatchingSpace.ts:
- let storageId = resource.storageId+ let storageId = resource.spaceId
(plus adds SpaceId DAV property and populates resource.spaceId in buildResource)
Steps to Reproduce
1. User A shares folder f1 (which contains subfolder k2) with User B
2. User B opens the share, selects a file inside f1/k2/j1/
3. User B tries to move the file to k2 → fails with PROPFIND 404
Version
OpenCloud 7.2.4 (regression introduced in v4→v7 upgrade, worked in v4.0.6)
Thanks for the detailed report and root-cause analysis — I could reproduce it locally.
Unfortunately the linked ownCloud fix won't solve it for OpenCloud. It switches getMatchingSpace() from resource.storageId to resource.spaceId, but for a subfolder inside a share, the server returns the owner's space as oc:spaceid (e.g. <storage>$<owner-space>), which is the same value storageId already holds. The recipient doesn't have that space; they only have the share space (<storage>$<owner-space>!<share-root-node>), so the lookup still fails and falls back to a share space with id = undefined. The Graph part of that fix (remoteItem.spaceId) doesn't exist in the OpenCloud libre-graph API either.
The actual problem is on our side: since move/copy use the location picker (web v7.1.4), the picked target folder is resolved via getMatchingSpace(). For subfolders of a share, that folder lacks the remoteItemId pointing to the share space; only the share root has it, which is why moving there works. We'll fix it by attaching the share space to the target folder.
For the stable release, it’s on our list for the next 7.2.x patch release together with a few other fixes, and you can track it here: OpenCloud Team Board (view)
I'll let you know when we release it.
Activity
AlexAndBear commentedon Sep 27, 2026
Thanks for the detailed report and root-cause analysis — I could reproduce it locally.
Unfortunately the linked ownCloud fix won't solve it for OpenCloud. It switches
getMatchingSpace()fromresource.storageIdtoresource.spaceId, but for a subfolder inside a share, the server returns the owner's space asoc:spaceid(e.g.<storage>$<owner-space>), which is the same valuestorageIdalready holds. The recipient doesn't have that space; they only have the share space (<storage>$<owner-space>!<share-root-node>), so the lookup still fails and falls back to a share space withid = undefined. The Graph part of that fix (remoteItem.spaceId) doesn't exist in the OpenCloud libre-graph API either.The actual problem is on our side: since move/copy use the location picker (web v7.1.4), the picked target folder is resolved via
getMatchingSpace(). For subfolders of a share, that folder lacks theremoteItemIdpointing to the share space; only the share root has it, which is why moving there works. We'll fix it by attaching the share space to the target folder.IronWERTY commentedon Sep 29, 2026
thanks for an explanation! will it be implemented in new release? or how long should it take?
AlexAndBear commentedon Sep 30, 2026
We will backport it to the stable release, can't tell you an exact time span, but it won't take too long
IronWERTY commentedon Oct 13, 2026
is it ready to deploy? and which version of docker image? Thanks
v-scharf commentedon Oct 13, 2026
The fix is already included in the latest rolling release (opencloud-rolling 8.1.0).
For the stable release, it’s on our list for the next 7.2.x patch release together with a few other fixes, and you can track it here: OpenCloud Team Board (view)
I'll let you know when we release it.