Description
To my knowledge, the current PackageURL.java implementation does not provide a simple way to retrieve the package's 'coordinates' (purl without subpath or qualifiers).
The package coordinates are useful for generic component information: pkg:deb/debian/curl@7.50.3-1 = cURL version 7.50.3-1.
Whereas the full purl is useful for specific component information: pkg:deb/debian/curl@7.50.3-1?arch=i386&distro=jessie&repository=... = cURL version 7.50.3-1 installed on Debian Jessie, i386 architecture, installed from this specific repository...
Proposed Solution
A PackageURL#getCoordinates method which returns pkg:type/namespace:name@version (no qualifiers or subpath).
For example, in Dependency-Track (a project you may have know about 😉), components have separate purl and purlCoordinates fields.
Description
To my knowledge, the current
PackageURL.javaimplementation does not provide a simple way to retrieve the package's 'coordinates' (purl without subpath or qualifiers).The package coordinates are useful for generic component information:
pkg:deb/debian/curl@7.50.3-1= cURL version 7.50.3-1.Whereas the full purl is useful for specific component information:
pkg:deb/debian/curl@7.50.3-1?arch=i386&distro=jessie&repository=...= cURL version 7.50.3-1 installed on Debian Jessie, i386 architecture, installed from this specific repository...Proposed Solution
A
PackageURL#getCoordinatesmethod which returnspkg:type/namespace:name@version(no qualifiers or subpath).For example, in Dependency-Track (a project you may have know about 😉), components have separate
purlandpurlCoordinatesfields.