packageurl-js icon indicating copy to clipboard operation
packageurl-js copied to clipboard

Incorrect parsing of PURLs begining with `pkg://`

Open matt-phylum opened this issue 2 years ago • 4 comments

The PURL test suite contains the PURL pkg://maven/org.apache.commons/io which is supposed to parse as a namespace of org.apache.commons and a name of io, but packageurl-js parses it as having no namespace. The namespace just disappears. It doesn't become part of the name.

matt-phylum avatar Nov 08 '23 16:11 matt-phylum

Raised https://github.com/package-url/packageurl-js/pull/62 to fix this

aniruth37 avatar Dec 06 '23 09:12 aniruth37

Cannot reproduce bug given the example above: https://github.com/package-url/packageurl-js/pull/62#issuecomment-2115067509

jdalton avatar May 16 '24 12:05 jdalton

This is still reproducible with the given example.

matt-phylum avatar May 16 '24 12:05 matt-phylum

Ah, my bad. @matt-phylum you are correct.

jdalton avatar May 16 '24 17:05 jdalton

Fixed in master branch.

jdalton avatar Aug 13 '24 16:08 jdalton