Skip to content

Restoring a file version fails silently #4100

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 restoring a file version fails, e.g. because the file is locked, nothing happens on screen. revertToVersion in packages/web-app-files/src/components/SideBar/Versions/FileVersions.vue awaits restoreFileVersion without a try/catch, so there's no error message, only an uncaught promise rejection.

Reproduction Steps

  1. Lock a file that has versions, e.g. open it in an office app or use WebDAV LOCK
  2. Open the sidebar → Versions
  3. Click "Restore" on an older version

Expected Outcome

An error message like "Failed to restore version".

Actual Outcome

No message, nothing changes, and the console shows an uncaught promise rejection.

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