-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong timestamp of file versions #2055
Comments
I'm not a programmer, but just had a look at the code. It seems the following line is responsible for creation of the version with the current timestamp. Using the current timestamp makes actually no sense, because the version is related to the already existing file, thus the timestamp of the existing file must be used. groupfolders/lib/Versions/VersionsBackend.php Line 114 in 3d587ef
Not sure how to get the timestamp of the existing file (which is copied as version). Just using the modification time seems to do the trick on the first view. But could also be wrong!?
|
Modification time of restored file must also be updated during rollback (this is also done for the local storage). Possible fix posted here: Maybe someone with deeper knowledge to versioning wants to test/double check. |
This was finally fixed with #2543 |
How to use GitHub
Steps to reproduce
Follow up of #1901 (first part of this issue).
Expected behaviour
File version of the initial file version should be shown with the date (timestamp) of this initial version. Generally file versioning should work in the same way as outside of a groupfolder.
Actual behaviour
File version of the initial file is shown but with date (timestamp) of the second file version (which is irritating and misleading).
Behaviour outside of a groupfolder does work as expected.
Server configuration
Operating system: Ubuntu 20.04
Web server: apache 2
Database: mysql/myriadb
PHP version: 7.4.3
Nextcloud version: 24.0.4 rc1
Group folders version: 12.0.1 with patched #2047
Updated from an older Nextcloud/ownCloud or fresh install: Updated
Where did you install Nextcloud from: Official repo
Are you using external storage, if yes which one: not as part of groupfolders
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Firefox
Operating system: Ubuntu 22.04
The text was updated successfully, but these errors were encountered: