Long strings when verifying an SPDX document with deeply nested relationships

Aperta
#189 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java
Ambito
tooling

Direzione di ricerca

Inizia tracciando la verifica degli elementi correlati introdotti dalla pull request #159 e analizza come vengono assemblati gli errori delle relazioni ricorsive. Definisci il formato conciso desiderato per i messaggi, mantenendo la segnalazione per ogni elemento interessato. Aggiungi la copertura per le relazioni profondamente annidate e verifica che i messaggi risultanti evitino di ripetere l'intera catena di relazioni.

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

Descrizione

error-handling

With the fix for verifying related elements verify will now report any Relationship as invalid if it references an invalid Element, this will create one line for the package, and one line each for the the relationships that reference the package. What makes the worse is that it is recursive - so if a package has a relationship which references a different package with a different relationship that references the package with the invalid license, you'll get a very long String for the invalid relationship with all the intermediate relationship ID's.

Note that this is somewhat expected since we do want to report every element that has an issue even if it is indirect. However, we may want to figure out a way to short the verify messages.

An ideal solution (difficult to implement) would be to report the root verify issue and list all other issues that have a relationship with the root verify issue (e.g. "Invalid license found in Package-X. This package is referenced in relationshipA, relationshipB, ...")

Lingua principale
Java
Stelle
72
Fork
45
Merge medio
1g 13h
PR unite (30g)
10

Preparare l'ambiente

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 spdx/Spdx-Java-Library

Tutte le issue di spdx/Spdx-Java-Library

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.