Skip to content

fix(ui): choose the OpenCloud space when adding a folder - #328

Merged
gnacho merged 2 commits into
mainfrom
fix/opencloud-share-mountpoints
Nov 8, 2026
Merged

gnacho merged 2 commits into
mainfrom
fix/opencloud-share-mountpoints

Conversation

@gnacho

@gnacho gnacho commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Received shares are their own LibreGraph drive (driveType: mountpoint), named after the original resource and browsable at /dav/spaces/<id>/. list_opencloud_spaces dropped them, so the only remaining path for the picker was the Nextcloud dav/files tree, which on OpenCloud exposes the aggregate Shares jail. A recipient of a share ended up seeing shares instead of the shared folder name, and nothing to synchronize.

Measured on a real OpenCloud 9 deployment with a temporary share between two users:

  • GET /graph/v1.0/drives returns personal, virtual (Shares) and mountpoint (publico, the received share).
  • PROPFIND /remote.php/dav/spaces/<mountpoint id>/ answers 207.
  • PROPFIND /remote.php/dav/files/<recipient>/ lists Shares/, which is what the dialog used to show.

Changes:

  • Keep mountpoint drives in the space listing (the virtual aggregate stays out) and carry the kind, so pickers can prefer the account's personal space.
  • New list_opencloud_space_folders reads the top-level folders of one space over WebDAV.
  • Add Folder dialog: a space combo (personal space, projects and received shares by name), the remote folder picker now reads the selected space, and the chosen space id is stored on the folder instead of inheriting the account's.
  • Setup wizard: same per-folder space selection, the account label shows the default space name.

Gates: 783 tests (0 failed, 3 ignored), cargo clippy --all-targets -- -D warnings, cargo fmt --check, translation catalog regenerated (541 entries).

Closes #327

Received shares are LibreGraph drives of type mountpoint, named after the
original resource and browsable at /dav/spaces/<id>/. Keep them in the space
listing (the virtual Shares aggregate stays out) and add a helper to read the
top-level folders of one space.
The Add Folder dialog listed remote folders from the Nextcloud dav/files tree,
which on OpenCloud exposes the aggregate Shares jail, so a recipient of a
share only saw 'shares'. Both the dialog and the setup wizard now list the
account's spaces (personal, projects and received shares by their original
name), read the remote folder picker from the chosen space and store its id on
the folder.
@gnacho
gnacho merged commit 78490a1 into main Nov 8, 2026
2 checks passed
@gnacho
gnacho deleted the fix/opencloud-share-mountpoints branch November 8, 2026 21:21
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.

OpenCloud: received shares cannot be chosen as folders and surface as the aggregate "Shares"

1 participant