Skip to content

After renaming an unlocked vault, it can't be opened and the correct password is rejected #3961

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

After renaming an unlocked vault, it can't be opened anymore and the correct password is rejected. P2 because it looks like data loss to the user (password "wrong", files gone or shown as ciphertext), even though nothing is lost: after a reload the vault opens fine under the new name.

moveEngine() in packages/web-app-rclone-crypt/src/vault.ts re-files the unlocked engine under the new key but keeps its old vault root, so the path helpers still point to the old path. We should also check what happens when a whole space is a vault and the space gets renamed.

Reproduction Steps

  1. Open and unlock an encrypted folder.
  2. Go back to Personal without reloading.
  3. Rename the vault, then open it again.

Expected Outcome

It opens under the new name and stays unlocked.

Actual Outcome

The unlock page opens for the old name and the correct password fails (PROPFIND 404). With a longer new name it shows ciphertext names instead and uploads go to the old path (412). Only a reload fixes it.

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