nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.4k stars 4.07k forks source link

[Bug]: "undefined restored" when restoring a previous version of a file #37055

Open ChristophWurst opened 1 year ago

ChristophWurst commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

I restored a file with multiple versions to the most recent snapshot before the current version. The revert succeeded but the toast in the top right corner said "undefined restored".

According to VersionTab::handleRestore the code expects the version label to always be set

Steps to reproduce

  1. Create a text file
  2. Modify it a couple of times
  3. Revert to a previous version

Expected behavior

Sensible toast message

Installation method

None

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

N/a

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

ChristophWurst commented 1 year ago

The error happened in a directory shared with me. I am not the owner of the file.

ChristophWurst commented 4 months ago

Bildschirmfoto vom 2024-06-20 15-47-36

yep

lukaspavelka commented 1 month ago

some issue here, did you resolve it ?

juniorfux commented 1 month ago

I get the same message, but I am the owner of the directory

lukaspavelka commented 1 month ago

i am also owner of directory and issue is still there :(