Replies: 3 comments
-
Personally, I think we'd better following the RFC, instead of modification the standards manually. Especiallly when we haven't enought force to make everything. |
Beta Was this translation helpful? Give feedback.
-
You mean one of the URL RFCs? The RFC rules are more complicated than the PURL rules. Different parts have different sets of characters that must be encoded and PURLs have different parts that URLs in ways that are important to percent encoding. URLs have one path, but PURL has a namespace and a name, and the encoding is different between the namespace and name. URLs have one qualifier string, but PURL has a collection of qualifier keys and values. Because URL uses different rules for different parts of the URL, and because there are multiple different URL specs, it was common for different PURL implementations to produce different "canonical" PURLs. There was a lot of time spent on encoding rules which eventually resulted in this set of rules. |
Beta Was this translation helpful? Give feedback.
-
@matt-phylum the URI RFC, RFC 3986. In fact the PURL is an URI. So why we define our own escape rules? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
purl-spec/PURL-SPECIFICATION.rst
Lines 279 to 285 in c53ba0e
purl-spec/tests/types/oci-test.json
Lines 174 to 191 in c53ba0e
"expected_output": "pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1",
?Maybe the whole testcases should be reviewed?
Beta Was this translation helpful? Give feedback.
All reactions