libresign icon indicating copy to clipboard operation
libresign copied to clipboard

You need to define a visible signature or initials to sign this document

Open Ksoft-Technologies opened this issue 6 months ago • 4 comments

Describe the bug

cannot sign the document

To reproduce

  1. Add file using /ocs/v2.php/apps/libresign/api/v1/file
  2. Validate file using /ocs/v2.php/apps/libresign/api/v1/file/validate/file_id/:id
  3. Request signature using /ocs/v2.php/apps/libresign/api/v1/request-signature
  4. Then set signature element using /ocs/v2.php/apps/libresign/api/v1/request-signature
  5. Then send sign notify using /ocs/v2.php/apps/libresign/api/v1/notify/signers

Once the requester received the email and sent the sign request, it shows the error

Expected behavior

expect to sign the document when user click and sign

Screenshots

Image

Image

Environment information

Operating System: Linux 5.15.0-135-generic x86_64

CPU: AMD EPYC-Rome Processor (2 threads)

Memory: 3.82 GB

nextcloud: 31.0.5.1

LibreSign: 11.2.4

Additional context

I'm initiating the sign-in flow through the API.

  1. Add file using /ocs/v2.php/apps/libresign/api/v1/file
  2. Validate file using /ocs/v2.php/apps/libresign/api/v1/file/validate/file_id/:id
  3. Request signature using /ocs/v2.php/apps/libresign/api/v1/request-signature
  4. Then set signature element using /ocs/v2.php/apps/libresign/api/v1/request-signature
  5. Then send sign notify using /ocs/v2.php/apps/libresign/api/v1/notify/signers

Once the requester received the email and sent the sign request it shows the error

Ksoft-Technologies avatar Jun 27 '25 09:06 Ksoft-Technologies

Did you made the same entire flow (add a file to be signed, add a signer by email, set visible element to this signer, access the link that was received by email and sign the document) using the LibreSign web interface and get the same message?

Sounds that you could made some mistake at this API flow but isn't possible to say that is or not a mistake because I haven't the entire request that you made on each step of your flow.

vitormattos avatar Jun 28 '25 16:06 vitormattos

Did you made the same entire flow (add a file to be signed, add a signer by email, set visible element to this signer, access the link that was received by email and sign the document) using the LibreSign web interface and get the same message?

Sounds that you could made some mistake at this API flow but isn't possible to say that is or not a mistake because I haven't the entire request that you made on each step of your flow.

Yes, in the web interface, I didn't see any such errors, with the same flow. used the same below apis and same order i have executed step 1. Add file using /ocs/v2.php/apps/libresign/api/v1/file step 2. Validate file using /ocs/v2.php/apps/libresign/api/v1/file/validate/file_id/:id step 3. Request signature using /ocs/v2.php/apps/libresign/api/v1/request-signature step 4. Then set signature element using /ocs/v2.php/apps/libresign/api/v1/request-signature step 5. Then send sign notify using /ocs/v2.php/apps/libresign/api/v1/notify/signers

Ksoft-Technologies avatar Jun 30 '25 03:06 Ksoft-Technologies

Could you compare the requests made at web interface at developer tools of your browser with your API requests?

If is possible, also would be good to have the entire context of requests that you are making, the path, header and body of all requests.

vitormattos avatar Jun 30 '25 11:06 vitormattos

Hi @Ksoft-Technologies were you able to better evaluate the scenario by comparing it with the requests made by the interface or perhaps you can provide a list of requests with sample data to reproduce the scenario?

vitormattos avatar Jul 09 '25 00:07 vitormattos