-
-
Notifications
You must be signed in to change notification settings - Fork 61
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 422 loading a pdf to be signed #4483
Comments
Could you provide a screenshot of this page took at the newest version? I made changes at this page at newest version to display more details about what's happening. At the previous version the reason to display this page wasn't displayed. |
This is an issue from api side. Could you provide the body of this request also at developer tools of your browser? And also would be good to check if have any entry at nextcloud.log file when this request is made. |
In the error nextcloud logs I read _2025/01/27 17:06:35 [error] 308778#308778: *7 FastCGI sent in stderr: "PHP message: PHP Fatal error: Trait "OCA\Libresign\Handler\CertificateEngine\OrderCertificatesTrait" not found in /var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/AEngineHandler.php on line 49" while reading response header from upstream, client: 82.192.135.167, server: , request: "GET /nextcloud/apps/files/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "vmi1532086.contaboserver.net" and nothing else. In the access nextcloud logs I read 82.192.135.167 - - [30/Jan/2025:16:40:34 +0100] "GET /nextcloud/apps/libresign/pdf/0009430e-bda9-48ee-ba43-5abad79a097a HTTP/1.1" 422 42 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0" If I open the browser's developer tools I see this So the response says: expired link I don't know if is userful but in my server I use php 8.3 |
Your issue is this:
Are you with the newest release of LibreSign? This error is very strange because have integration and unit tests covering this code. |
My versoni is 10.6.1 I try to load a video firefox_qmlzRIPEFu.mp4 |
What's the body that stay at body of this endpoint with status code 422? |
Maybe there is some permission rule to make on the file system? I check again the configuration of libresign after the update and I found some errors so I did the occ instruction to repair and now all is green. If it helps you here is the header's request
and the header's response
|
I made a update of Java version: After every dependency version upgrade, is necessary to download the newest version of outdated dependency. |
The issue is the error that you found at your log file:
But the problem is that I can't reproduce this and have a lot of tests covering this row at CI flow every when a PR is made and before all releases. |
Hi, after the resolution of the issue #4455 I continued to test the libresign.
I'm able to assign a signer and draw a signing area. The signer receive the mail but when I click on the link and after the login I have a NO FILE FOUND error page.
Then I click on libresign icon and I view in the list of the document, the pdf to be signed.
I try to sign it but I wait forever.
So I try to sign with the browser console opened and this is the result:
Content-Security-Policy: Le impostazioni della pagina hanno bloccato l’esecuzione di un worker script (worker-src) da https://myserver/nextcloud/apps/libresign/js/pdf.worker.min.mjs in quanto viola la seguente direttiva: “script-src 'nonce-Ckc6FXiuc6w2LLChmWUBSfDqjfn2YkcKvivdHsVU/9Q=' 'unsafe-eval'”
and as a last error
Object { message: 'Unexpected server response (422) while retrieving PDF "https://myserver/nextcloud/apps/libresign/pdf/0009430e-bda9-48ee-ba43-5abad79a097a".', name: "UnexpectedResponseException", status: 422, stack: "29082/r/4491/ue<@https:///nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:1770445\n4491@https:///nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:1770473\nn@https:///nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:2146048\n29082/r/<@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:2171260\n29082/r/<@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:2590086\nr@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:2590091\n29082@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:2590105\no@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:4960483\n65111@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:3668248\no@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:4960483\n@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:4980008\n@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:5045898\n@https://myserver/nextcloud/apps/libresign/js/libresign-main.js?v=49e87620-0:2:5045902\n" }
The text was updated successfully, but these errors were encountered: