Describe the bug
After upgrading to Nextcloud 33.0.2 via AIO, opening a document or an identity file in LibreSign throws an "Invalid node" error. This specifically happens during the external signer workflow. When requesting a signature from someone who is not registered on Nextcloud, the external user uploads their identity files and signs. But when trying to view those uploaded identity documents or the PDF in the validation section, LibreSign fails to fetch the file by its node ID and throws a Fatal Error. Running occ files:scan --all does not fix the issue.
To reproduce
Steps to reproduce the behavior:
- Upgrade to Nextcloud 33.0.2 (using AIO).
- Create a signature request and send it to an external user (email not registered on the NC instance).
- The external user opens the link, draws their signature, and uploads the required identity documents.
- Try to open/validate these identity documents or the PDF from the LibreSign interface.
- See error "Invalid node".
Expected behavior
The identity files uploaded by the external signer and the PDF should open normally in the viewer to proceed with the validation.
Screenshots
{"reqId":"cZRC8b82srQpTsdQPUQt","level":3,"time":"2026-04-10T12:18:40+00:00","remoteAddr":"78.241.83.45","user":"admin","app":"index","method":"GET","url":"/apps/libresign/p/pdf/06486c19-e946-42b8-801b-eddb035c590b","scriptName":"/index.php","message":"Invalid node","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36","version":"33.0.2.2","exception":{"Exception":"OCP\Files\NotFoundException","Message":"Invalid node","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/libresign/lib/Service/AccountService.php","line":345,"function":"getFileByNodeId","class":"OCA\Libresign\Service\FolderService","type":"->","args":[11918]},{"file":"/var/www/html/custom_apps/libresign/lib/Controller/PageController.php","line":467,"function":"getPdfByUuid","class":"OCA\Libresign\Service\AccountService","type":"->","args":["06486c19-e946-42b8-801b-eddb035c590b"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"getPdf","class":"OCA\Libresign\Controller\PageController","type":"->","args":["06486c19-e946-42b8-801b-eddb035c590b"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Libresign\Controller\PageController"},"getPdf"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Libresign\Controller\PageController"},"getPdf"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Libresign\Controller\PageController","getPdf",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"libresign.page.getpdf","uuid":"06486c19-e946-42b8-801b-eddb035c590b"}]},{"file":"/var/www/html/lib/base.php","line":1155,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/libresign/p/pdf/06486c19-e946-42b8-801b-eddb035c590b"]},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/libresign/lib/Service/FolderService.php","Line":104,"message":"Invalid node","exception":"{"class":"OCP\Files\NotFoundException","message":"Invalid node","code":0,"file":"/var/www/html/custom_apps/libresign/lib/Service/FolderService.php:104","trace":"#0 /var/www/html/custom_apps/libresign/lib/Service/AccountService.php(345): OCA\Libresign\Service\FolderService->getFileByNodeId(11918)\n#1 /var/www/html/custom_apps/libresign/lib/Controller/PageController.php(467): OCA\Libresign\Service\AccountService->getPdfByUuid('06486c19-e946-4...')\n#2 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OCA\Libresign\Controller\PageController->getPdf('06486c19-e946-4...')\n#3 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Libresign\Controller\PageController), 'getPdf')\n#4 /var/www/html/lib/private/AppFramework/App.php(153): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Libresign\Controller\PageController), 'getPdf')\n#5 /var/www/html/lib/private/Route/Router.php(321): OC\AppFramework\App::main('OCA\\Libresign\\C...', 'getPdf', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#6 /var/www/html/lib/base.php(1155): OC\Route\Router->match('/apps/libresign...')\n#7 /var/www/html/index.php(25): OC::handleRequest()\n#8 {main}"}","CustomMessage":"Invalid node"},"id":"69d906f9ebe5a"}
Environment information
- Nextcloud version: 33.0.2 (All-in-One)
- LibreSign version: 13.2.2
- PHP version: 8.3.30
Additional context
No response
Describe the bug
After upgrading to Nextcloud 33.0.2 via AIO, opening a document or an identity file in LibreSign throws an "Invalid node" error. This specifically happens during the external signer workflow. When requesting a signature from someone who is not registered on Nextcloud, the external user uploads their identity files and signs. But when trying to view those uploaded identity documents or the PDF in the validation section, LibreSign fails to fetch the file by its node ID and throws a Fatal Error. Running
occ files:scan --alldoes not fix the issue.To reproduce
Steps to reproduce the behavior:
Expected behavior
The identity files uploaded by the external signer and the PDF should open normally in the viewer to proceed with the validation.
Screenshots
{"reqId":"cZRC8b82srQpTsdQPUQt","level":3,"time":"2026-04-10T12:18:40+00:00","remoteAddr":"78.241.83.45","user":"admin","app":"index","method":"GET","url":"/apps/libresign/p/pdf/06486c19-e946-42b8-801b-eddb035c590b","scriptName":"/index.php","message":"Invalid node","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36","version":"33.0.2.2","exception":{"Exception":"OCP\Files\NotFoundException","Message":"Invalid node","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/libresign/lib/Service/AccountService.php","line":345,"function":"getFileByNodeId","class":"OCA\Libresign\Service\FolderService","type":"->","args":[11918]},{"file":"/var/www/html/custom_apps/libresign/lib/Controller/PageController.php","line":467,"function":"getPdfByUuid","class":"OCA\Libresign\Service\AccountService","type":"->","args":["06486c19-e946-42b8-801b-eddb035c590b"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"getPdf","class":"OCA\Libresign\Controller\PageController","type":"->","args":["06486c19-e946-42b8-801b-eddb035c590b"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Libresign\Controller\PageController"},"getPdf"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Libresign\Controller\PageController"},"getPdf"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Libresign\Controller\PageController","getPdf",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"libresign.page.getpdf","uuid":"06486c19-e946-42b8-801b-eddb035c590b"}]},{"file":"/var/www/html/lib/base.php","line":1155,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/libresign/p/pdf/06486c19-e946-42b8-801b-eddb035c590b"]},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/libresign/lib/Service/FolderService.php","Line":104,"message":"Invalid node","exception":"{"class":"OCP\Files\NotFoundException","message":"Invalid node","code":0,"file":"/var/www/html/custom_apps/libresign/lib/Service/FolderService.php:104","trace":"#0 /var/www/html/custom_apps/libresign/lib/Service/AccountService.php(345): OCA\Libresign\Service\FolderService->getFileByNodeId(11918)\n#1 /var/www/html/custom_apps/libresign/lib/Controller/PageController.php(467): OCA\Libresign\Service\AccountService->getPdfByUuid('06486c19-e946-4...')\n#2 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OCA\Libresign\Controller\PageController->getPdf('06486c19-e946-4...')\n#3 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Libresign\Controller\PageController), 'getPdf')\n#4 /var/www/html/lib/private/AppFramework/App.php(153): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Libresign\Controller\PageController), 'getPdf')\n#5 /var/www/html/lib/private/Route/Router.php(321): OC\AppFramework\App::main('OCA\\Libresign\\C...', 'getPdf', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#6 /var/www/html/lib/base.php(1155): OC\Route\Router->match('/apps/libresign...')\n#7 /var/www/html/index.php(25): OC::handleRequest()\n#8 {main}"}","CustomMessage":"Invalid node"},"id":"69d906f9ebe5a"}
Environment information
Additional context
No response