-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed evidence identity. Updated test cases (#359)
Fixed issue with evidence identity that restricted identity to only a single object. The defect was found in JSON and XML schemas but was correct in protobuf. Updated JSON and XML schemas in a way where they are backward compatible. Updated test cases in v1.6 that support BOTH methods (single object and array of objects) of specifying identity evidence. Closes #272
- Loading branch information
Showing
7 changed files
with
319 additions
and
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,50 @@ | |
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "application", | ||
"group": "com.example", | ||
"name": "example-project", | ||
"version": "1.0.0", | ||
"purl": "pkg:maven/com.example/[email protected]", | ||
"evidence": { | ||
"identity": [ | ||
{ | ||
"field": "group", | ||
"confidence": 0.1, | ||
"methods": [ | ||
{ | ||
"technique": "filename", | ||
"confidence": 0.1, | ||
"value": "example-project-1.0.0.jar" | ||
} | ||
] | ||
}, | ||
{ | ||
"field": "name", | ||
"confidence": 0.1, | ||
"methods": [ | ||
{ | ||
"technique": "filename", | ||
"confidence": 0.1, | ||
"value": "example-project-1.0.0.jar" | ||
} | ||
] | ||
}, | ||
{ | ||
"field": "version", | ||
"confidence": 0.1, | ||
"methods": [ | ||
{ | ||
"technique": "filename", | ||
"confidence": 0.1, | ||
"value": "example-project-1.0.0.jar" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.