-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple purl identifiers in product_identification_helper
This allows a vendor to specify multiple purl identifiers for a single component (present as a product version branch in the product tree). Multiple purls may identify the same component but point to different locations from where that component may be available. Thus, it is mandatory that if multiple purls are present in a single product_identification_helper object, they must only differ in their qualifiers. Otherwise they should be set up as different product tree branches.
- Loading branch information
Showing
7 changed files
with
76 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ It MUST be tested that given purl is valid. | |
The relevant paths for this test are: | ||
|
||
``` | ||
/product_tree/branches[](/branches[])*/product/product_identification_helper/purl | ||
/product_tree/full_product_names[]/product_identification_helper/purl | ||
/product_tree/relationships[]/full_product_name/product_identification_helper/purl | ||
/product_tree/branches[](/branches[])*/product/product_identification_helper/purls[] | ||
/product_tree/full_product_names[]/product_identification_helper/purls[] | ||
/product_tree/relationships[]/full_product_name/product_identification_helper/purls[] | ||
``` | ||
|
||
*Example 1 (which fails the test):* | ||
|
@@ -19,11 +19,35 @@ The relevant paths for this test are: | |
"name": "Product A", | ||
"product_id": "CSAFPID-9080700", | ||
"product_identification_helper": { | ||
"purl": "pkg:maven/@1.3.4" | ||
"purls": [ | ||
"pkg:maven/@1.3.4" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
``` | ||
|
||
> Any valid purl has a name component. | ||
It MUST also be tested that if more than one purl is specified, they can only differ in their qualifiers. | ||
|
||
*Example 2 (which fails the test):* | ||
|
||
``` | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"name": "Product A", | ||
"product_id": "CSAFPID-9080700", | ||
"product_identification_helper": { | ||
"purls": [ | ||
"pkg:maven/org.example.blue/[email protected]", | ||
"pkg:maven/org.example.blue/[email protected]" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
``` | ||
> The two purls differ in the name component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters