Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parsing of PURLs that begin with pkg:/ #6

Closed
matt-phylum opened this issue Nov 8, 2023 · 1 comment
Closed

Incorrect parsing of PURLs that begin with pkg:/ #6

matt-phylum opened this issue Nov 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@matt-phylum
Copy link

The PURL test suite contains the PURLs pkg:/maven/org.apache.commons/io pkg://maven/org.apache.commons/io pkg:///maven/org.apache.commons/io, all of which are supposed to parse successfully to the same package. However, perl-URI-PackageURL fails to parse all three with "Malformed PackageURL string".

giterlizzi added a commit that referenced this issue Nov 9, 2023
- Improved validation during encode and decode "purl" string
- Fixed CPAN repository URL
- FIX Qualifiers are case sensitive (#4)
- FIX PURLs containing multiple namespaces segments parse incorrectly (#5)
- FIX Incorrect parsing of PURLs that begin with "pkg:/" (#6)
- Improved "t/99-official-purl-test-suite.t" test
@giterlizzi giterlizzi added the bug Something isn't working label Nov 9, 2023
@giterlizzi
Copy link
Owner

FIXED in last release of URI::PackageURL

$ purl-tool pkg:///maven/org.apache.commons/io --env
PURL="pkg:maven/org.apache.commons/io"
PURL_TYPE="maven"
PURL_NAMESPACE="org.apache.commons"
PURL_NAME="io"
PURL_VERSION=""
PURL_SUBPATH=""
PURL_QUALIFIERS=""
PURL_REPOSITORY_URL="https://mvnrepository.com/artifact/org.apache.commons/io"

Thanks ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants