Skip to content

[validation] Invalid externalReferences URLs may be present in the SBOM #1107

Closed
@marob

Description

@marob

With DependencyTrack 4.11 validating SBOM with schema validation at upload, I've discovered that some SBOM may have invalid externalReferences.
For example:

"externalReferences": [
  {
    "type": "vcs",
    "url": "[email protected]:behat-chrome/chrome-mink-driver.git"
  }
],

coming from composer dmore/chrome-mink-driver package.

Indeed, an externalReference should be a iri-reference or a #/definitions/bomLink according to the JsonSchema.

The problem is that [email protected]:behat-chrome/chrome-mink-driver.git is neither a #/definitions/bomLink nor an iri-reference (that should be of the form scheme://... according to the RFC).

If we can "convert" [email protected]:behat-chrome/chrome-mink-driver.git to https://gitlab.com/behat-chrome/chrome-mink-driver.git it would be nice, but if not, we'd better drop the reference than write an invalid one.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions