Skip to content

Vault indicator shows "Vault locked" in a shared folder after the vault was unlocked #4265

Closed

Description

@JammingBen

Bug Description

When a vault sits inside a shared folder, its lock indicator in the parent folder keeps showing "Vault locked" after it has been unlocked. Files inside the unlocked vault also never get the "Vault unlocked" indicator.

useVaultIndicator checks the unlock state with resource.storageId, but unlocked vaults are stored by space.id. In personal and project spaces both IDs are the same. In a share space they differ: the space ID is the share ID (provider$space!node), while storageId is only provider$space. All other vault store callers use space.id.

Reproduction Steps

  1. As user A, create a vault inside a folder and share that folder with a guest
  2. Log in as the guest and open the shared folder
  3. Open the vault and unlock it
  4. Navigate back to the parent folder of the vault

Expected Outcome

The vault shows the "Vault unlocked" indicator, and files inside it show the unlocked indicator.

Actual Outcome

The vault still shows the "Vault locked" indicator.

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