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

Qualifier case is not normalized on parse #27

Open
matt-phylum opened this issue Nov 8, 2023 · 0 comments
Open

Qualifier case is not normalized on parse #27

matt-phylum opened this issue Nov 8, 2023 · 0 comments

Comments

@matt-phylum
Copy link

The PURL test suite contains a non-canonical PURL pkg:gem/[email protected]?Platform=java which is supposed to parse as a PURL with the qualifier platform=java, but packageurl-dotnet parses the qualifier as Platform=java. The qualifier case is normalized only in ToString.

This causes two problems:

  1. If somebody writes code that parses a PURL and then tries to obtain the value of a qualifier, they will sometimes not get the expected value because the qualifier case doesn't match.
  2. Serializing the PURL and then deserializing the PURL results in a slightly different PURL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant