Skip to content

Conversation

@giterlizzi
Copy link
Contributor

@giterlizzi giterlizzi commented Jul 29, 2025

I recently started implementing the new tests in URI-PackageURL, but after #514 I encountered some problems.

This PR is companion of #551 and fix some percent-encoding except "swid" because I have a doubts about whether + should be encoded as a space (%20) or as a plus sign (%2B) in namespace and name components.

In addition, I think some Conan tests should be removed or revised because they are contradictory (e.g. 'invalid conan purl only namespace’ and 'invalid conan purl only channel qualifier’) -- see last comment of #168

(edited)

@matt-phylum
Copy link
Contributor

Can you add a test to specification-test.json to ensure that + still decodes as +? Currently we're getting that testing through the cocoapods test and I agree that the cocoapods test shouldn't be doing that.

I'm pretty sure in the SWID tests the + is supposed to have been %20. Adobe has some documentation about their SWID tags and they don't use plus signs there. https://www.adobe.com/devnet-docs/acrobatetk/tools/AdminGuide/identify.html?highlight=swid

@giterlizzi giterlizzi mentioned this pull request Aug 4, 2025
@giterlizzi giterlizzi changed the title FIX some percent-encoding issue FIX some percent-encoding and qualifier order issue Aug 5, 2025
iseki0 added a commit to iseki0/PUrlKt that referenced this pull request Aug 5, 2025
@jkowalleck jkowalleck requested a review from a team August 14, 2025 13:29
@jkowalleck jkowalleck requested a review from a team August 14, 2025 14:55
@giterlizzi
Copy link
Contributor Author

To keep the repo tidy in terms of duplicate issues and PRs, should this PR be closed in favour of #587 ?

@jkowalleck
Copy link
Member

To keep the repo tidy in terms of duplicate issues and PRs, should this PR be closed in favour of #587 ?

#587 was merged.
are there any cases left?

@giterlizzi
Copy link
Contributor Author

I synced the JSON tests and no longer have sorting or percent-encoding errors in the qualifiers. However, there are still issues with some tests in other PURL types, but I will respond directly in the respective issues.

Thanks ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants