LibreSign / libresign

✍️ Nextcloud app to sign PDF documents
https://libresign.coop
GNU Affero General Public License v3.0
482 stars 56 forks source link

LibreSign 9.3.2 not working in Nextcloud 29.0.7 #3747

Open stepcellwolf opened 2 weeks ago

stepcellwolf commented 2 weeks ago

Describe the bug I'm not able to install the dependencies with OpenSSL and CFSSL certificate. This does not work via UI nor via the console: sudo -u nextcloud php8.3 --define apc.enable_cli=1 occ libresign:install --all --verbose No output no results.

To Reproduce This does not work via UI nor via the console: UI: Admin-> LibreSign -> Download bianaries -> Validate setup -> (no results)

Console: sudo -u nextcloud php8.3 --define apc.enable_cli=1 occ libresign:install --all --verbose No output no results.

Expected behavior It should work, with previous version was working few days ago.

Environment information (please complete the following information):

vitormattos commented 2 weeks ago

Hi, Could you check if have any entry at nextcfloud.log file related to LibreSign? I can't reproduce this.

stepcellwolf commented 2 weeks ago

@vitormattos hi sorry, forgot to add the logs: tail -f /var/log/nextcloud/nextcloud.log|grep libresign {"reqId":"q1bDQLIpgz41w8sONIvS","level":3,"time":"2024-09-23T16:49:23+00:00","remoteAddr":"2a02:3102:4c35:800:711b:bb02:22e3:670c","user":"predrag","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}

Hope this helps.

stepcellwolf commented 6 days ago

Hi @vitormattos did you managed to reproduce the error?