-
Notifications
You must be signed in to change notification settings - Fork 21
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
purl containing a query parameter repository_url with own (encoded) query parameters not handled correctly? #43
Comments
Hi there, ...small correction from my side: The example I provided above is - in reference to the purl specification not a correct purl, since the value of the qualifier repository_url is not percent encoded. But if you try with a correct purl like pkg:oci/azure-cli@sha256:9df8ac260650dbae684ab7e47916d4def942582b491d1fe0593b22eb1cac235b?repository_url=index.docker.io%2Fbitnam%2Fazure-cli%26arch%3Damd64 and you transform this into a packageURL Object and back to string (with toString() ), then the result differs from the input. See the following test, which fails: `import { PackageURL } from 'packageurl-js'; const purl = expect(PackageURL.fromString(purl).toString()).toBe(purl); Sorry for the confusion! |
Related to package-url/purl-spec#39 |
This is handled in #73 by using Also leveraging standard |
Closed by #73 |
Hi there,
...maybe this is just misunderstanding from my side, but when I create a purl object for a purl like this
pkg:oci/azure-cli@sha256:9df8ac260650dbae684ab7e47916d4def942582b491d1fe0593b22eb1cac235b?repository_url=index.docker.io%2Fbitnami%2Fazure-cli\u0026arch=amd64
it seems that the (encoded) query parameter from the query parameter
repository_url
is handled as separate query parameter of the purl and not of therepository_url
.The result is:
My expectation would have been:
Is my expectation wrong or is this a bug?
The text was updated successfully, but these errors were encountered: