LibreSign / libresign

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

Error when I try to sign directly on file explorer #499

Closed Iwios closed 2 years ago

Iwios commented 2 years ago

Hello,

When I try to sign from the 3 dot on file explorer I have an error but when I try to sign the same PDF from libresign apps the process work fine.

What do you need like informations to try to debug?

Iwios commented 2 years ago

I have this error in the debug consol:

<?xml version="1.0" encoding="utf-8"?>

Sabre\DAV\Exception\NotFound File with name //Sans nom 4.pdf could not be located
Iwios commented 2 years ago

In the Nextcloud Log I have this message :

Error | libresign | Invalid data to validate file

Iwios commented 2 years ago

And in the web server log :

"PROPFIND /remote.php/dav/files/User1/Sans%20nom%205.pdf HTTP/2.0" 404 197 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62"

Iwios commented 2 years ago

@vitormattos you have no ideas?

Iwios commented 2 years ago

I continue to search for error log :

"app":"libresign","method":"GET","url":"/apps/libresign/api/0.1/file/validate/file_id/5792","message":"Invalid data to validate file", "app":"workflowengine","method":"GET","url":"/apps/libresign/api/0.1/file/validate/file_id/5792","message":"Flow activation: rules were requested for operation Bloquer l'acc\u00e8s \u00e0 un fichier"

Iwios commented 2 years ago

After many tries... I understand where is the problem. The error is when I try to sign a pdf under a folder.

Iwios commented 2 years ago

Hi @vitormattos any ideas about this case ?

vitormattos commented 2 years ago

I see an error generated by event of app workflowengine, this isn't LibreSign error. Is only with a specific file?

Iwios commented 2 years ago

Hi, No with any files on subfolder

vitormattos commented 2 years ago

Can you generate an example PDF with problem without sensible data and send here?

Iwios commented 2 years ago

Yes, but with a blank file from Word, I have an error.

vitormattos commented 2 years ago

I don't use Microsoft Word.

Iwios commented 2 years ago

Hi, You can try with this file Sans nom 1.pdf

Iwios commented 2 years ago

Hi @vitormattos Have you try with my PDF file to sign it into a subfolder ?

vitormattos commented 2 years ago

I tested it using:

server: 21, 22 and 23
LibreSign: 2.4.5
java --version
     openjdk 11.0.13 2021-10-19
JSignPDF: 1.6.5
cfssl version
     Version: 1.5.0
     Runtime: go1.14.1

I didn't find problems

Check if you have JSignPDF version 1.6.5. LibreSign version 2.4.5 (latest stable) is not yet compatible with newer versions of JSignPDF. https://github.com/LibreSign/libresign/blob/v2.4.5/lib/Handler/JSignPdfHandler.php#L46

Iwios commented 2 years ago

Hello this is my configuration : Jsign : 1.6.5 Java : openjdk 11.0.13 Nextcloud : 34 Cfssl: version dev Runtime : go1.17.5

Iwios commented 2 years ago

Hello, I see the differenc is the cfssl version and go version.

It's possible this is the problem ?

Iwios commented 2 years ago

I tested it using:

server: 21, 22 and 23
LibreSign: 2.4.5
java --version
     openjdk 11.0.13 2021-10-19
JSignPDF: 1.6.5
cfssl version
     Version: 1.5.0
     Runtime: go1.14.1

I didn't find problems

Check if you have JSignPDF version 1.6.5. LibreSign version 2.4.5 (latest stable) is not yet compatible with newer versions of JSignPDF. https://github.com/LibreSign/libresign/blob/v2.4.5/lib/Handler/JSignPdfHandler.php#L46

Hi, sorry to be so pressed, but have you an Idea about my problem?

vitormattos commented 2 years ago

Hi, I haven't idea. I can't reproduce your problem using your PDF file.

Looking at your logs it looks like a problem about the file that doesn't exist.

Does the problem persist using other files?

Iwios commented 2 years ago

Hello, Yes with differents documents thé problem persist.

In wich log ? I look into the log in web interface of Nextcloud but nogthin

Iwios commented 2 years ago

Hi,

Can you give me the right process to install the good version of cfssl ?

vitormattos commented 2 years ago

Check new version of LibreSign.