-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error signature - TCPDF #889
Comments
Hi Alexis, thanks for always you send an excellent report with all steps to reproduce the scenarios. We only have a point in code with the message " Could you help a bit more to identify what happening? Is here the place that send the error to log file and return the error to client: |
I added the line of code as requested, here is what I have in addition in the logs {"reqId":"QFXnYakPDLQkYkmGL9OJ","level":3,"time":"2022-08-13T11:32:52+00:00","remoteAddr":"IPV4","user":"user","app":"libresign","method":"POST","url":"/index.php/apps/libresign/api/0.1/sign/uuid/13177c1b-0f25-4acd-9438-32fbead8a981","message":"[{"file":"\/var\/www\/nextcloud\/apps\/libresign\/vendor\/tecnickcom\/tcpdf\/include\/tcpdf_fonts.php","line":2004,"function":"array_map"},{"file":"\/var\/www\/nextcloud\/apps\/libresign\/vendor\/tecnickcom\/tcpdf\/tcpdf.php","line":6394,"function":"UTF8StringToArray","class":"TCPDF_FONTS","type":"::"},{"file":"\/var\/www\/nextcloud\/apps\/libresign\/lib\/Handler\/Pkcs12Handler.php","line":187,"function":"Write","class":"TCPDF","type":"->"},{"file":"\/var\/www\/nextcloud\/apps\/libresign\/lib\/Service\/SignFileService.php","line":788,"function":"writeFooter","class":"OCA\\Libresign\\Handler\\Pkcs12Handler","type":"->"},{"file":"\/var\/www\/nextcloud\/apps\/libresign\/lib\/Service\/SignFileService.php","line":672,"function":"getPdfToSign","class":"OCA\\Libresign\\Service\\SignFileService","type":"->"},{"file":"\/var\/www\/nextcloud\/apps\/libresign\/lib\/Service\/SignFileService.php","line":595,"function":"getFileToSing","class":"OCA\\Libresign\\Service\\SignFileService","type":"->"},{"file":"\/var\/www\/nextcloud\/apps\/libresign\/lib\/Controller\/SignFileController.php","line":202,"function":"sign","class":"OCA\\Libresign\\Service\\SignFileService","type":"->"},{"file":"\/var\/www\/nextcloud\/apps\/libresign\/lib\/Controller\/SignFileController.php","line":180,"function":"sign","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->"},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":225,"function":"signUsingUuid","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->"},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":1023,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"\/var\/www\/nextcloud\/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}]","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36 Edg/104.0.1293.54","version":"24.0.3.2","data":{"app":"libresign"},"id":"62f78bf1aa9d8"} |
Hello, |
Hello, I come back to the bug which is still relevant. |
I redid the last update and I still have the same problem I just have an additional log error
|
same 422 error on NC 24.0.8
a files with .signé is added even if the error occurs, it is a copy of the orirginal file without any signature. |
@Alexis-M51 I launched a new release bumping the TCPDF package and I think that could solve this problem. @Fr0ggys and @unnilennium We dropped the support to version 24 of Nextcloud because we have no one helping the libresign developers with funding to maintain the support to version 24. If you want to use LibreSign with the newest features and changes, upgrade your server to 25, or, if you prefer to use version 24 will be necessary talk with us to identify how much is necessary to funding the project and maintain the support to server with version 24. |
Hi, When I followed the link, it asked me to create a pw, and then confirm a pw (I used my NextCloud pw for this -- should it be different?) And then I got this message - Error creating new password, please contact the administrator. The logs are showing this: [libresign] Error: Cannot set non existing property OCA\Libresign\Handler\CfsslHandler->set = array ( POST /apps/libresign/api/0.1/account/signature ... that is what I entered in cfssl:config, for country... NextCloud 25.0.3 |
Exactly same error |
So the "country" setting should be the ISO 2-character country code, not the full country. To fix this, use the "Regenerate root certificate" button on the Libresign settings page, and set this value correctly. This solved my issue... Although for some reason this button didn't show up at first. How I actually fixed this was by finding the incorrect setting in the database oc_appconfig table, with appid = 'libresign' and configkey = 'rootCert'. Deleting that value made it so I could regenerate it in the UI. |
I made a lot of changes and removed the interaction of TCPDF at this point. I created a new release of LibreSign. Could you test and check if this issue was solved? I will close this issue as resolved. I think that this issue is outdated and this already was solved. If you identify a behavior related to this, create a new issue with the steps to reproduce your scenario and put the #889 code to make reference to this issue. Thanks for all by comments here. PS: If you like this app, don't hesitate to help us to maintain the development sponsoring by GitHub sponsor https://github.com/sponsors/LibreSign or also contacting us to have Enterprise support: https://libresign.coop |
Describe the bug
When I try to sign a document, libresign gives me an error saying that I must contact the administrator
To Reproduce
Expected behavior
The goal is to have a validation of the signature
Screenshots
Log
Erreur | libresign | array_map(): Argument #2 ($array) must be of type array, bool given
{"reqId":"Q1qtzCJ3MCjWJ8Kn0wD4","level":3,"time":"2022-08-12T08:16:01+00:00","remoteAddr":"ipv6","user":"email","app":"libresign","method":"POST","url":"/index.php/apps/libresign/api/0.1/sign/uuid/ab3fd2b7-b7f5-4eff-91e9-655603b279f7","message":"array_map(): Argument #2 ($array) must be of type array, bool given","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0","version":"24.0.3.2","data":{"app":"libresign"}}
Environment information (please complete the following information):
The text was updated successfully, but these errors were encountered: