Jyrki Gadinger
27ede927d4
fix(lockfilejobs): ensure using correct file path
...
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-06-02 15:59:17 +02:00
Andy Scherzinger
48e53ea216
docs(reuse): Migrate to SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-05-07 23:06:34 +02:00
Integral
356e4f9296
refactor: replace QString() with QStringLiteral() for better performance
...
Signed-off-by: Integral <integral@member.fsf.org>
2025-01-31 15:11:02 +01:00
Matthieu Gallien
52e78b3ece
when locking a file set If-Match header to ensure etag is correct
...
the file being locked may have been changed sinc the client synced it
so the server side file may have a modified etag. In such cases we do
not want to lock the file and would rather sync the nex server changes
before being able to lock the file
that would ensure that on client side the file being locked is matching
teh state of teh file on server side and would prevent inadvertently
overriding server changes
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-09 09:33:49 +01:00
Matthieu Gallien
098f4ef164
better automated tests log
...
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-05-15 15:06:11 +02:00
alex-z
dbde9e3a2b
Detect office files for locking on new upload. Notify FolderWatcher.
...
Signed-off-by: alex-z <blackslayer4@gmail.com>
2024-04-13 15:46:37 +02:00
alex-z
2eaecb6400
File locking. Manual lock should never be modified without user intervention. Set token lock instead of user lock when locking office files automatically.
...
Signed-off-by: alex-z <blackslayer4@gmail.com>
2024-01-18 10:21:09 +01:00
alex-z
3815919aa5
Fix a crash when saving the locked Word document file due to unnecessary spam to the lock state change from folder watcher logic.
...
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-09-05 15:52:04 +02:00
Matthieu Gallien
aa55275cc8
add an automated test to check that locked files are read-only
...
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2023-08-21 12:57:16 +02:00
Matthieu Gallien
a378c4d80a
add extra tests for lock files to better capture desired behavior
...
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2022-10-11 16:01:58 +02:00
Matthieu Gallien
d371855e56
test that files soon to be expired will be synced automatically
...
try to ensure that we properly sync again files for which lock has
expired
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2022-10-11 16:01:58 +02:00
Matthieu Gallien
b55a099b61
allow lock/unlock of files from files explorer integration
...
add new commands to the contextual menu provided by our files explorer
plugins to allow locking/unlocking a file
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2022-05-02 13:52:05 +02:00
Matthieu Gallien
2ea68d75bd
add automated tests for LockFileJob to validate proper behavior
...
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2022-05-02 13:52:05 +02:00