files_lock icon indicating copy to clipboard operation
files_lock copied to clipboard

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

Open danir-de opened this issue 3 years ago • 1 comments

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.

danir-de avatar Sep 23 '22 14:09 danir-de

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.

jonas2515 avatar May 08 '24 11:05 jonas2515

Fixed in nextcloud/richdocuments#3448

joshtrichards avatar May 12 '25 20:05 joshtrichards