spdx / spdx/spdx-java-tagvalue-store

Multiple values for PackageSupplier not flagged as invalid

Open
#64 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
3
Forks
1
Avg merge
4d 6h
Merged PRs (30d)
3

Description

example6-lib.spdx.txt

PackageSupplier: Person: Michael Hudson-Doyle
PackageSupplier: Organization: Canonical Ltd.

python tools flags it as invalid:

pyspdxtools -i example6-lib.spdx
ERROR:root:There have been issues while parsing the provided document:
Error while parsing Package: ['Multiple values for PackageSupplier found. Line: 16']

java tools do not:

This SPDX Document is valid.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the attached example6-lib.spdx.txt through the Java tag/value store and compare its PackageSupplier handling with the reported pyspdxtools result. Trace the PackageSupplier parsing and validation entry point; done means the duplicate values are rejected consistently and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.