Skip to content

add test for percent signs - #273

Open
matt-phylum wants to merge 2 commits into
package-url:mainfrom
matt-phylum:percent
Open

add test for percent signs#273
matt-phylum wants to merge 2 commits into
package-url:mainfrom
matt-phylum:percent

Conversation

@matt-phylum

@matt-phylum matt-phylum commented Nov 20, 2023

Copy link
Copy Markdown
Contributor

This PR adds a simple test that percent signs are correctly encoded and decoded in all parts of a PURL. Some implementations don't correctly handle percent encoding in all allowed positions (giterlizzi/perl-URI-PackageURL, maennchen/purl, package-url/packageurl-ruby, package-url/packageurl-swift, sonatype/package-url-java) and some implementations don't encode percent signs (althonos/packageurl.rs, anchore/packageurl-go, phylum-dev/purl).

matt-phylum added a commit to phylum-dev/purl that referenced this pull request Nov 20, 2023
matt-phylum added a commit to phylum-dev/purl that referenced this pull request Nov 22, 2023
* encode percent signs

* use same test as package-url/purl-spec#273
@johnmhoran johnmhoran added the Ecma standard Part of the Ecma standard for PURL label Dec 8, 2024
@johnmhoran johnmhoran added this to the 1.0-draft milestone Apr 4, 2025
@johnmhoran johnmhoran modified the milestones: PURL v1.0, PURL v0.90 May 29, 2025
@mjherzog mjherzog removed the Ecma standard Part of the Ecma standard for PURL label Jun 9, 2025
@pombredanne

Copy link
Copy Markdown
Member

@matt-phylum here too, after the merge of PR #514, PURL tests and defs are now defined in new JSON schema 👼 😇 😁 :

.... this PR needs to be updated. Sorry for the pain. Thank you for your patience!

@mjherzog mjherzog removed this from the ECMA-427 2nd Edition milestone Aug 13, 2026
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.

5 participants