-
-
Notifications
You must be signed in to change notification settings - Fork 57
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] NC20 and sidebar --> How-To? #188
Comments
Hi @aheider! Grateful for the contact and I am very happy that you are testing LibreSign, it is an app that we believe can be very useful for thousands of people. At the moment this option to sign as shown in your print is not working because it was a proof of concept that we did using jQuery, we need to rewrite this part of the application using VueJS #60 which is the framework adopted as standard in the newer versions of Nextcloud . For now the start of the signature flow is only working well with requests for API as described in the documentation: https://libresign.github.io/libresign/Getting-started.html There is also an identified problem described in this issue #170. The creation of the signature file as it is in the print you sent is also a proof of concept that in a future version will be removed and simplified with a screen listing all documents and their status #5. To test, make a request as described in the link I sent above. Make the request for someone with an email that does not have an account on your Nextcloud instance. This person will receive an email asking them to sign the document. |
Ok, thanks.
But what I got was: 301 Moved Permanentlynginx/1.17.6 ` I also tried https://MYNC.URL/s/LnRqEjngG7BHsMT/download for a direct download link, which gives the same error. So could it be that the webhook URL is the wrong one? A minimum working example that gets me to sign a sample doc would be really great. But I think I will get there if I get 2 more hints or so B-) |
I have not yet identified the exact reason but in some cases when the HTTP protocol of the PDF URL is HTTPS, it returns 302 and does not download the PDF. You can use either the url or base64 of the file when making the request to the API. If you are not going to use any callback webhook you can remove this parameter from json. |
Ok, funny thing: Any additional tipps? What to try next? |
I made some recent adjustments that are in the main branch and maybe they will solve with what you reported in the last message, I will generate a new release. |
There, I just published a new release. Update and see if the request works. |
Ok. I got further now! FIrst, I tried this POST: --> message: invalid PDF I searched for a really small PDF in base64 encoding and tried: --> {"message":"Erfolgreich","data":{"uuid":"c54338bf-86d3-4318-9555-0b141ea89f9d"}} By what means does LibreSign find the right signature file (and in there the password or a hash) in my Nextcloud instance? What I did was use the NC app from within NC to create a "pfx" file in the folder /files/signatures/My Name.pfx What I also learned was:
|
when I use an email address that is not one of the NC users, and I have it previously registered, I get: Es tut uns leid, aber die Seite, nach der du suchst, existiert nicht, wurde entfernt, verschoben oder ist vorübergehend nicht verfügbar.` --> "404 This is not your file..." Questions:
I think I am almost there! Thank you so much. |
So... I figured out that you need to logout from any open NC connections in your browser, otherwise, this won#t work and NC/LibreSign thinks you are the already logged in person! I tried with an up to now untouched email address in the POST ---> I got the email --> clicked the link --> got the "REGISTER NEW USER" page, which is the first time ---> inserted details ---> clicked the button (with spanish text) --> This is not your file I tried a new POST request with an email address which has been preregistered in NC/LibreSign --> logged out --> got the mail --> clicked the link --> register account page --> entered details --> clicked the button (spanish text) --> internal server error, contact admin --> error in the log of NC: Of course Java is installed. I verified this in the NC app docker container --> its not there, seems dockerfile did not work as expected --> got exec in the container --> mkdir -p /usr/share/man/man1 /usr/share/man/man2 --> apt update; apt install default-jre --> succeeded --> java -v --> gives correct version Redone all the LibreSign steps from sending the POST onwards --> error "eror to sign pdf []" So I still miss some magic bits ;-) Please give my a hand here... Thank you so much! |
Hi there! How are you coming along with LibreSign? Is this issue solved or there's anything else we can help? We're glad to see you sharing your experiencies with LibreSign! Do you know your page at Patreon (https://www.patreon.com/librecode)? Over there you can learn more about the project and contribute opening and solving new issues. Feel free to be part of it and contribute as you can! |
Dear all,
I set up a nextcloud instance using docker with compose and letsencrypt SSL certificates (works since ages). It is running on NC20.
I recently updated the NC app container with the dependencies according to the LibreSign app and I added a CFSSL container.
I installed the LibreSign app from the app store (version 2.2.1) --> installed smoothly
I added Email details in NC admin section --> test email got through without issues.
I added CFSSL details in NC admin section as follows:
--> root certificate was issued successfully and I could see it in the /cfssl folder
I created a new "abonnement" for a given email address as follows:
--> created successfully
I tried to sign the Nextcloud Manual.pdf:
The result was this, which reads "document could not be signed":
In the logs I see the following errors:
`[index] Error: Exception: Call to a member function loadKeys() on null at <>
0. /var/www/html/lib/private/AppFramework/App.php line 152
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Libresign\Co ... }}, "loadCertificate")
OC\AppFramework\App::main("OCA\Libresign\ ... r", "loadCertificate", OC\AppFramework\ ... {}, {_route: "libres ... "})
OC\Route\Router->match("/apps/libresign ... e")
OC::handleRequest()
GET /apps/libresign/api/0.1/admin/certificate
from MYIP by andreas at 2021-04-22T14:55:01+00:00
[PHP] Error: Error: Undefined property: OCA\Libresign\Controller\AdminController::$service at /var/www/html/custom_apps/libresign/lib/Controller/AdminController.php#74 at <>
0. /var/www/html/custom_apps/libresign/lib/Controller/AdminController.php line 74
OC\Log\ErrorHandler::onError(8, "Undefined prope ... e", "/var/www/html/c ... p", 74, [])
OCA\Libresign\Controller\AdminController->loadCertificate()
OC\AppFramework\Http\Dispatcher->executeController(OCA\Libresign\Co ... }}, "loadCertificate")
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Libresign\Co ... }}, "loadCertificate")
OC\AppFramework\App::main("OCA\Libresign\ ... r", "loadCertificate", OC\AppFramework\ ... {}, {_route: "libres ... "})
OC\Route\Router->match("/apps/libresign ... e")
OC::handleRequest()
GET /apps/libresign/api/0.1/admin/certificate
from MYIP by andreas at 2021-04-22T14:55:01+00:00
[index] Error: Exception: Call to a member function loadKeys() on null at <>
0. /var/www/html/lib/private/AppFramework/App.php line 152
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Libresign\Co ... }}, "loadCertificate")
OC\AppFramework\App::main("OCA\Libresign\ ... r", "loadCertificate", OC\AppFramework\ ... {}, {_route: "libres ... "})
OC\Route\Router->match("/apps/libresign ... e")
OC::handleRequest()
GET /apps/libresign/api/0.1/admin/certificate
from MYIP by andreas at 2021-04-22T14:41:17+00:00
[PHP] Error: Error: Undefined property: OCA\Libresign\Controller\AdminController::$service at /var/www/html/custom_apps/libresign/lib/Controller/AdminController.php#74 at <>
0. /var/www/html/custom_apps/libresign/lib/Controller/AdminController.php line 74
OC\Log\ErrorHandler::onError(8, "Undefined prope ... e", "/var/www/html/c ... p", 74, [])
OCA\Libresign\Controller\AdminController->loadCertificate()
OC\AppFramework\Http\Dispatcher->executeController(OCA\Libresign\Co ... }}, "loadCertificate")
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Libresign\Co ... }}, "loadCertificate")
OC\AppFramework\App::main("OCA\Libresign\ ... r", "loadCertificate", OC\AppFramework\ ... {}, {_route: "libres ... "})
OC\Route\Router->match("/apps/libresign ... e")
OC::handleRequest()
GET /apps/libresign/api/0.1/admin/certificate
from MYIP by andreas at 2021-04-22T14:41:17+00:00
`
What have I done wrong?
Was this suppossed to happen?
How can I fix this (on NC20 including use of the sidebar?
If this is not possible, what is the alternative?
THank you so much!
The text was updated successfully, but these errors were encountered: