nextcloud / files_lock

GNU Affero General Public License v3.0
24 stars 8 forks source link

Can't unlock file with TTL = 0 #198

Open camlafit opened 8 months ago

camlafit commented 8 months ago

Hi

We have different files stored in oc_files_lock table with this pattern :

id user_id file_id token creation type scope ttl owner
1876 one@ccount 2042608 files_lock/965f5b0d-de31-4b57-9b89-68d697120853 1695049796 0 0 0

Looks permanent and can't be removed/cleaned with occ cli :

/occ files:lock 2042608 --unlock
unlocking File #2042608

In FileService.php line 73:

  [OCP\Files\NotFoundException]  

files:lock [--output [OUTPUT]] [-u|--unlock] [--uninstall] [-s|--status] [--] [<file_id> [<user_id>]]

Is it possible to clean them ?