Skip to content

Details of a disabled project space show a "Failed to load shares" error #4317

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Since #4203, opening the details of a disabled project space shows a "Failed to load shares" error toast. The server answers 404 for a disabled drive's root permissions; before #4203 that failure was only logged, now it's shown to the user.

Reproduction Steps

  1. As admin, disable a project space
  2. Open the Spaces overview
  3. Select the disabled space with the details sidebar open (on mobile: tile menu → Details)

Expected Outcome

The space details show without an error, like in 8.2.1.

Actual Outcome

The toast "Failed to load shares" appears (also when you go on to enable the space). GET /graph/v1beta1/drives/<id>/root/permissions returns 404. FileSideBar.vue loads shares for every selected resource, and canListShares doesn't exclude disabled spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions