Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Breadcrumbs don't resolve conflicting spaces / are only path based #7799

Closed

Description

@kulmann

Followup of #7725

Breadcrumbs are currently built from parent paths segments (i.e. only path based, no fileIds present). As a result, the breadcrumbs might resolve to the wrong space if you have two or more spaces with identical drive aliases (drive alias clashes are allowed, we need fileIds to resolve the correct space).

To solve this we need a sequence of propfinds, with each propfind being on the fileId of a folder and requesting the respective parent folder id, until we reached the root of the space.

Side note: we can collect the shareTypes of all parent folders as well. This would resolve the issue that we currently request all shares via OCS. Doesn't need to be implemented in the same PR, but should be prepared.

Activity

  1. tbsbdr commented on Oct 14, 2022

    @tbsbdr

    imo cornercase but consequences could be really ugly. I need to real-time talk with you about this to give it a proper prio.

  2. kulmann commented on Oct 14, 2022

    @kulmann
    ContributorAuthor

    Turns out: the breadcrumbs work correct without the fileId because we already have a resolved space (from DriveResolver.vue component / useDriveResolver composable) and when the drive alias doesn't change we don't try to re-resolve the space. We only extract the updated relative item path. The fileId gets added back to the URL (because we have a mechanism in place that does that). Definitely not a GA blocker, everything works. Just could be "more precise" with the fileId already being in the route to the parent folder. No other added value.

  3. moved this from Qualification to Refactor / Technical Debt in Infinite Scale Team Boardon Jun 4, 2024
  4. kulmann commented on Jun 4, 2024

    @kulmann
    ContributorAuthor

    We have the ancestorMetaData available in the resource pinia store by now. That is all the information we need (a fileId for each and every parent folder up to the space root). The function which builds breadcrumb items needs to be refactored to take the fileIds into account as well. But as already stated, prio is really really low because it fixes no bug at all.

  5. self-assigned this
    on Jul 8, 2024
  6. moved this from Refactor / Technical Debt to Done in Infinite Scale Team Boardon Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Category:TechnicalPriority:p4-lowTopic:Hardening

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions