-
Notifications
You must be signed in to change notification settings - Fork 811
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
[Feature]: Lock files when editing locally #5101
Comments
Not a bug but a feature request. The lock is not set even if the file is opened via file viewer locally. |
@juliushaertl I thought the server-side does lock the file first before triggering the edit locally, no? |
No, we only unlock the collaborative editing to free the file for the desktop client on the server. For locking we would not have a way to know when to unlock again, so either the lock would disappear after the timeout or it would last until manually removed by the user. |
@juliushaertl @AndyScherzinger
|
I'd like to have @karlitschek's feedback on this from a product perspective - as in the locking should take place or not in case of edit locally and depending on that the blog post would need to be changed or.the exact locking behavior to be agreed on. |
Very good question. I wasn't aware of the details here. @jancborchardt @jospoortvliet What do you all think? The lock will expire after 30min, correct? |
By default the lock never expires as introduced in nextcloud/files_lock#49 / nextcloud/files_lock#55 but can be configured by the admin. Despite different timeouts I'd say the file should not get locked until it is actually opened by the desktop client. If the file is not synced or the client not installed there is no need to lock the file and we cannot detect either of the two on the server side unfortunately. |
Ok. So, this should be a feature for the desktop. Will need some time though, as it is not clear for example how to find out the file editing is finished on the desktop side and is not clear how to detect editing of non-office files (those for office apps create a special lock file so it can be detected, but this is not the case for txt files for example). |
I think that for many this is one of the main new features in Hub 3. It gets both disappointing and embarrassing when it’s not working as expected (Nextcloud Office release solves document compatibility, overhauls knowledge management). Nextcloud has grown to be a very important platform for many organizations so I thing this should be high priority to solve. |
@allexzander I follow this issue for some time, and, If I may suggest, why not implement the possible/known use case of locking MSOffice files and afterwards evolve the locking to something more complex? I suggest that because some programs (Eg: Photoshop) does not even "lock" the file in the OS itself when you open it (try to open a file in Photohop, and, having the file open, try to delete it or rename it and see what happens) plus, if you investigate this in Google Drive or OneDrive, they did only implement the MSOffice lock feature so far. Also, this article may give you some insights as to detect if a file is open in a specific folder: https://www.codeproject.com/Articles/18975/Listing-Used-Files |
As far as I remember we agreed on manual lock in first place (without "edit locally") as otherwise it is hard to decide when to unlock. I will put it on our board for next time. |
@allexzander can you give a rough estimation how long this will take? |
~4-5 days (implementation + testing + review) |
Bug description
The file is not locked when edited locally
Steps to reproduce
Expected behavior
The file should be locked on step 2
Installation method
No response
Operating system
Other
PHP engine version
Other
Web server
Other
Database engine version
Other
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
c.nc.com
The text was updated successfully, but these errors were encountered: