spdx / spdx/Spdx-Java-Library

Long strings when verifying an SPDX document with deeply nested relationships

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

Nessuno ha ancora preso questa issue.

error-handling
Lingua principale
Java
Stelle
71
Fork
44
Merge medio
12h 54m
PR unite (30g)
7

Descrizione

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, ...")

Guida per i contributori

Apri la guida per i contributori

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.

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.

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.