Skip to content

Shares panel keeps loading forever when loading the shares fails #4181

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

When loading a resource's shares fails, the Shares panel shows its loader forever, without an error, and choosing Share again for the same resource doesn't retry. useLoadShares.ts never resets the loading state on error, and FileSideBar.vue marks the resource as loaded before the request finishes.

Reproduction Steps

  1. Open a folder with s.txt
  2. Make GET /graph/v1beta1/drives/{d}/items/{id}/permissions fail (500 or aborted)
  3. Open ⋮ > Share on s.txt
  4. Let the request work again and choose Share for s.txt again without closing the sidebar

Expected Outcome

The loading ends with an error message, and opening Share again retries.

Actual Outcome

Only the "Loading list of shares" loader shows, no toast. Opening Share again keeps the loader and sends no new request.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions