Don't escape colons in qualifier values#24
Closed
melotic wants to merge 1 commit intopackage-url:masterfrom
Closed
Don't escape colons in qualifier values#24melotic wants to merge 1 commit intopackage-url:masterfrom
melotic wants to merge 1 commit intopackage-url:masterfrom
Conversation
1 task
morended
approved these changes
Jun 5, 2023
Contributor
|
Looks good. BTW, python implementation (https://github.com/package-url/packageurl-python) is most up-to-date and it also fails this test: self = <test_packageurl.PurlTest testMethod=test_purl_pkg_valid_go_purl_with_slash_in_name_namespace_version_and_qualifier>
def test_purl(self):
# parsing the test canonical `purl` then re-building a `purl` from these
# parsed components should return the test canonical `purl`
cano = PackageURL.from_string(purl)
> assert canonical_purl == cano.to_string()
E AssertionError: assert 'pkg:golang/g...source.com/go' == 'pkg:golang/g...source.com/go'
E - pkg:golang/google.golang.org/repo/gen/proto@abc/dedf?repository_url=go.googlesource.com/go
E ? ^ ^
E + pkg:golang/google.golang.org/repo/gen%2Fproto@abc%2Fdedf?repository_url=go.googlesource.com/go
E ? ^^^ ^^^
tests/test_packageurl.py:82: AssertionErrorDo you want to take a crack it? Testing both ways (placing |
Author
|
@am11 I've raised a PR here to sync and fix the tests: package-url/packageurl-python#123 |
Author
|
Hi @am11, any updates? |
Collaborator
|
@ThomasPiskol is it possible to review this please? |
1 task
Collaborator
|
Resolved in 17d80c4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When adding a URL as a qualifier value, I was noticing that the URL's colons would be escaped. They should not be escaped.