When a shared file is already locked by a user in Nextcloud and another user wants to open the same file for the first time, nextcloud synchronizes the locked file without the read-only attribute and allows the second user to edit the already-locked file
Steps to reproduce
Scenario:
2 Users: UserA and UserB have access to FileA
Both users are using nextcloud desktop sync app.
Temporary files lock application is enabled on the server
1.
UserA has FileA already synchronized on its computer
UserB does not have FileA synchronized
2.
UserA locks FileA and starts to editing it
3.
UserB opens FileA for editing
At this moment, FileA is synchronized for UserB, however, the Read-only attribute is not set on the file, allowing UserB to edit the file.
Expected behavior
FileA should be synchronized for UserB with the Read-only attribute set, so that the file would not be edited by both users
Which files are affected by this bug
Any file accessible by more than one user
Operating system
Windows
Which version of the operating system you are running.
Windows 10
Package
Distro package manager
Nextcloud Server version
24.0.5
Nextcloud Desktop Client version
3.6.1
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 3.4.2 to 3.4.4)
Are you using the Nextcloud Server Encryption module?
⚠️ Before submitting, please verify the following: ⚠️
Bug description
When a shared file is already locked by a user in Nextcloud and another user wants to open the same file for the first time, nextcloud synchronizes the locked file without the read-only attribute and allows the second user to edit the already-locked file
Steps to reproduce
Scenario:
1. UserA has FileA already synchronized on its computer UserB does not have FileA synchronized
2. UserA locks FileA and starts to editing it
3. UserB opens FileA for editing
At this moment, FileA is synchronized for UserB, however, the Read-only attribute is not set on the file, allowing UserB to edit the file.
Expected behavior
FileA should be synchronized for UserB with the Read-only attribute set, so that the file would not be edited by both users
Which files are affected by this bug
Any file accessible by more than one user
Operating system
Windows
Which version of the operating system you are running.
Windows 10
Package
Distro package manager
Nextcloud Server version
24.0.5
Nextcloud Desktop Client version
3.6.1
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 3.4.2 to 3.4.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
Nextcloud Server logs
No response
Additional info
No response