Skip to content

fix: list links on space roots as spaces in shared via link - #3605

Merged
AlexAndBear merged 4 commits into
mainfrom
fix/shared-via-link-space-root
Oct 12, 2026
Merged

AlexAndBear merged 4 commits into
mainfrom
fix/shared-via-link-space-root

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Description

  • Links on space roots: the server returns the root of a space as a drive item named ".", so these links were treated as hidden files: the list showed "Nothing shared, yet" (or "." rows with "Show hidden files"). The "Shared via link" loader now lists such a link as the space itself from the spaces store (like the search does), so it gets the space name, image, the "Spaces" location, opens the space like in the spaces list and reflects space actions (rename, description, image, …) right away. The backend issue is tracked in sharedByMe returns links on space roots as items named "." opencloud#3698.
  • Shared on: the space doesn't carry the link date, so the loader sets sdate from the link on the space in the spaces store. SpaceResource stays untouched, such a space is typed as LinkSharedSpaceResource.
  • Fallback: if the space is unknown, buildOutgoingShareResource still treats a space root as a folder at / that can't be renamed or deleted.
Before (with "Show hidden files") After
b-vialink a-vialink

Related Issue

  • No issue, found in the functional bug sweep of the web client

How Has This Been Tested?

  • test environment: local dev server, Playwright (Chromium)
  • links on four space roots (with and without space image): listed with the space name, image or default space icon and "Spaces" as location; clicking opens the space
  • rename a listed space via the context menu (list and tiles view): the new name shows up in the list right away; "Shared on" shows the link date
  • unit tests added

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces on the "Shared via link" page seem to be somehow decoupled from the store, because things like renaming don't update the list.

@AlexAndBear

Copy link
Copy Markdown
Member Author

Spaces on the "Shared via link" page seem to be somehow decoupled from the store, because things like renaming don't update the list.

Good catch! Space was a copy and lost it's tracking

@AlexAndBear
AlexAndBear force-pushed the fix/shared-via-link-space-root branch from 8c836f0 to baf7883 Compare October 12, 2026 10:28
@AlexAndBear
AlexAndBear merged commit 54a7d22 into main Oct 12, 2026
31 checks passed
@AlexAndBear
AlexAndBear deleted the fix/shared-via-link-space-root branch October 12, 2026 11:20
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in OpenCloud Team Board Oct 12, 2026
@openclouders openclouders mentioned this pull request Oct 12, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants