Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Validation page says "This document is valid" for a document with no signature

Aperta Adatta ai principianti
#8,967 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@maia-andre ci sta già lavorando.

Dal 4/10/2026.

  • #9009 di @maia-andre — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Inizia in src/views/Validation.vue, in getDocumentValidationSummary(), che attualmente basa il riepilogo sull’elenco dei firmatari. Verifica gli scenari relativi ai documenti non firmati e ai documenti annullati descritti nell’issue, quindi verifica che i documenti senza firme applicate mostrino il messaggio esistente relativo all’assenza di firme, mentre i documenti firmati mantengano gli attuali controlli di convalida.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

The validation page shows the green note "This document is valid" for a document that has no signature at all, for example a request that was just sent and nobody has signed yet. It also shows it for a canceled envelope where nobody signed.

getDocumentValidationSummary() in src/views/Validation.vue decides on the list of signers, not on the signatures actually applied:

  • it returns "No digital signatures were found in this document" only when the signers array is empty;
  • otherwise, when no integrity problem is found among the signers, it returns "This document is valid".

A signer who has not signed carries no signature_validation, modification_validation or document_modification_state, so none of the error or warning branches match and the summary falls through to "valid". The same logic is on stable35 and main.

To reproduce
  1. Request a signature on any PDF from one signer.
  2. Before anybody signs, open /apps/libresign/p/validation/<uuid> (logged out or as the requester).
  3. The page says This document is valid, with the status Ready to sign and the signer Not signed yet right below it.
Expected behavior

The summary should be based on the signatures that were actually applied:

  • no signature applied → the existing "No digital signatures were found in this document" (info), whatever the number of signers;
  • at least one signature → the current checks, evaluated on the signed signers only.

The file status (ready to sign, partially signed, canceled) is already shown in the details below the note, so I don't think the note needs to repeat it. Open to a different wording if you prefer one for pending documents.

Screenshots

Unsigned document:

Unsigned document marked as valid

Canceled envelope where nobody signed: the header above this summary also reads "This document is valid".

Envelope where nobody signed

Operational System

Linux (devcontainer)

Browser Type and Version

Chromium (Playwright)

Libresign Version

16.0.0-dev (main); same logic on stable35

Nextcloud Server Version

36 (dev)

Logs from Nextcloud Server

None; this is frontend-only.

Lingua principale
PHP
Stelle
830
Fork
161
Merge medio
15h 28m
PR unite (30g)
490

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LibreSign/libresign

Tutte le issue di LibreSign/libresign

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.