nextcloud / files_lock

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

[Bug]: Can't rename files (Collabora) when file is open #95

Open danir-de opened 2 years ago

danir-de commented 2 years ago

You can change file-names when inside a document with the Collabora Office app. This fails, when the files_lock app is active. Editing should be possible by the app controlling the lock.

[richdocuments] Error: OCP\Files\NotPermittedException: Could not move /danir/files/Demos/Rename me 1.docx to /danir/files/Demos/Rename me 2.docx at <<closure>>

0. /apps/richdocuments/lib/Controller/WopiController.php line 652
   OC\Files\Node\Node->move()
1. /lib/private/AppFramework/Http/Dispatcher.php line 225
   OCA\Richdocuments\Controller\WopiController->postFile()
2. /lib/private/AppFramework/Http/Dispatcher.php line 133
   OC\AppFramework\Http\Dispatcher->executeController()
3. /lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch()
4. /lib/private/Route/Router.php line 298
   OC\AppFramework\App::main()
5. /lib/base.php line 1030
   OC\Route\Router->match()
6. /index.php line 36
   OC::handleRequest()

POST /index.php/apps/richdocuments/wopi/files/XXX?access_token=XXX&access_token_ttl=0&permission=edit
from XXX by danir at XXX

Expectation: The app that holds the lock should be able to modify the document to it's pleasing.

jonas2515 commented 6 months ago

We've been running into this issue too. Unfortunately the rename failing appears to break the document completely, making it impossible to open it afterwards. That seems like quite a large issue.