You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Internal error when switching signature methods in LibreSign on Nextcloud
labels: bug
assignees:
Describe the bug
After successfully signing PDF documents using the "certificate with password" method, switching to the "identification factors" option (which offers "click to sign" and "email token") causes the signing process to fail with an internal error. The error message displayed is:
"Internal error. Contact admin."
To Reproduce
Steps to reproduce the behavior:
Log in as an authenticated user on the Nextcloud instance.
Open a PDF document that you want to sign.
Select the signing option and choose the "certificate with password" method. Sign two documents successfully.
Switch to the "identification factors" option, which provides "click to sign" and "email token" options.
Click on either the "click to sign" or "email token" option.
The signing process fails, and the system displays an internal error message.
Expected behavior
The signing process should complete successfully regardless of the selected method. When switching to "identification factors," the system should properly sign the PDF document without errors.
Screenshots
No thanks.
Environment information
OS: [Docker container based(nextcloud:production)]
Browser: Dontmatter... Chrome 134.0.0.0 on Windows 11 Actually brave.
LibreSign Version: 10.6.3
Nextcloud Server Version: 30.0.6.2
Logs
Below is an excerpt from the Nextcloud log (data/nextcloud.log) related to LibreSign:
{"reqId":"Nr19tNTrrmXJIjMRq0fl","level":3,"time":"2025-03-10T16:21:09+00:00","remoteAddr":"172.19.0.1","user":"--","app":"libresign","method":"POST","url":"/ocs/v2.php/apps/libresign/api/v1/sign/uuid/5e030475-f60c-41fd-bb40-513d0b751ea4","message":"[{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Handler\/JSignPdfHandler.php","line":137,"function":"signWrapper","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->","args":[{}]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Handler\/JSignPdfHandler.php","line":108,"function":"signUsingVisibleElements","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Handler\/Pkcs12Handler.php","line":426,"function":"getSignedContent","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Service\/SignFileService.php","line":271,"function":"sign","class":"OCA\\Libresign\\Handler\\Pkcs12Handler","type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Controller\/SignFileController.php","line":133,"function":"sign","class":"OCA\\Libresign\\Service\\SignFileService","type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Controller\/SignFileController.php","line":95,"function":"sign","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->","args":["account",[{"documentElementId":6,"profileNodeId":5520}],"","797552",null,"5e030475-f60c-41fd-bb40-513d0b751ea4"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":208,"function":"signUsingUuid","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->","args":["5e030475-f60c-41fd-bb40-513d0b751ea4","account",[{"documentElementId":6,"profileNodeId":5520}],"","797552"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{},"signUsingUuid"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{},"signUsingUuid"]},{"file":"\/var\/www\/html\/lib\/private\/Route\/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Libresign\\Controller\\SignFileController","signUsingUuid",{},{"apiVersion":"v1","uuid":"5e030475-f60c-41fd-bb40-513d0b751ea4","_route":"ocs.libresign.signfile.signusinguuid"}]},{"file":"\/var\/www\/html\/ocs\/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/ocsapp\/apps\/libresign\/api\/v1\/sign\/uuid\/5e030475-f60c-41fd-bb40-513d0b751ea4"]},{"file":"\/var\/www\/html\/ocs\/v2.php","line":7,"args":["\/var\/www\/html\/ocs\/v1.php"],"function":"require_once"}]","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","version":"30.0.6.2","data":{"app":"libresign"}}
Additional context
The issue persists even after attempting to remove libresign from nextcloud and
the LibreSign directory. The problem appears when reinstalled libresign . Tryed both methods, after that... no luck same error afte that... Delete data on remove ticked in app store... before remove...
The text was updated successfully, but these errors were encountered:
title: Internal error when switching signature methods in LibreSign on Nextcloud
labels: bug
assignees:
Describe the bug
After successfully signing PDF documents using the "certificate with password" method, switching to the "identification factors" option (which offers "click to sign" and "email token") causes the signing process to fail with an internal error. The error message displayed is:
"Internal error. Contact admin."
To Reproduce
Steps to reproduce the behavior:
Log in as an authenticated user on the Nextcloud instance.
Open a PDF document that you want to sign.
Select the signing option and choose the "certificate with password" method. Sign two documents successfully.
Switch to the "identification factors" option, which provides "click to sign" and "email token" options.
Click on either the "click to sign" or "email token" option.
The signing process fails, and the system displays an internal error message.
Expected behavior
The signing process should complete successfully regardless of the selected method. When switching to "identification factors," the system should properly sign the PDF document without errors.
Screenshots
No thanks.
Environment information
OS: [Docker container based(nextcloud:production)]
Browser: Dontmatter... Chrome 134.0.0.0 on Windows 11 Actually brave.
LibreSign Version: 10.6.3
Nextcloud Server Version: 30.0.6.2
Logs
Below is an excerpt from the Nextcloud log (data/nextcloud.log) related to LibreSign:
{"reqId":"Nr19tNTrrmXJIjMRq0fl","level":3,"time":"2025-03-10T16:21:09+00:00","remoteAddr":"172.19.0.1","user":"--","app":"libresign","method":"POST","url":"/ocs/v2.php/apps/libresign/api/v1/sign/uuid/5e030475-f60c-41fd-bb40-513d0b751ea4","message":"[{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Handler\/JSignPdfHandler.php","line":137,"function":"signWrapper","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->","args":[{}]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Handler\/JSignPdfHandler.php","line":108,"function":"signUsingVisibleElements","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Handler\/Pkcs12Handler.php","line":426,"function":"getSignedContent","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Service\/SignFileService.php","line":271,"function":"sign","class":"OCA\\Libresign\\Handler\\Pkcs12Handler","type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Controller\/SignFileController.php","line":133,"function":"sign","class":"OCA\\Libresign\\Service\\SignFileService","type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/libresign\/lib\/Controller\/SignFileController.php","line":95,"function":"sign","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->","args":["account",[{"documentElementId":6,"profileNodeId":5520}],"","797552",null,"5e030475-f60c-41fd-bb40-513d0b751ea4"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":208,"function":"signUsingUuid","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->","args":["5e030475-f60c-41fd-bb40-513d0b751ea4","account",[{"documentElementId":6,"profileNodeId":5520}],"","797552"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{},"signUsingUuid"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{},"signUsingUuid"]},{"file":"\/var\/www\/html\/lib\/private\/Route\/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Libresign\\Controller\\SignFileController","signUsingUuid",{},{"apiVersion":"v1","uuid":"5e030475-f60c-41fd-bb40-513d0b751ea4","_route":"ocs.libresign.signfile.signusinguuid"}]},{"file":"\/var\/www\/html\/ocs\/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/ocsapp\/apps\/libresign\/api\/v1\/sign\/uuid\/5e030475-f60c-41fd-bb40-513d0b751ea4"]},{"file":"\/var\/www\/html\/ocs\/v2.php","line":7,"args":["\/var\/www\/html\/ocs\/v1.php"],"function":"require_once"}]","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","version":"30.0.6.2","data":{"app":"libresign"}}
Additional context
The issue persists even after attempting to remove libresign from nextcloud and
the LibreSign directory. The problem appears when reinstalled libresign . Tryed both methods, after that... no luck same error afte that... Delete data on remove ticked in app store... before remove...
The text was updated successfully, but these errors were encountered: