You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Construction of an Inferred URL for a Package is dropping the plus sign #181
Note that the Inferred URL has a gap (space) where there ought to be a + (plus) sign.
If you click on it in the DejaCode user UI you get a 404.
If you copy the whole thing, and edit it to restore the + then you get the intended repo page.
Similar to this, golang pypi cargo etc also use version (which has potential spaces) from the purl_data to form inferred URL, If @tdruez is not working on the issue already, i can update those too
Also, if we try to add package using purl - pkg:github/facebook/sapling@0.2.20240718-145624%20f4e9df48
it resolves to incorrect download URL with a space instead of +
Activity
OmkarPh commentedon Nov 5, 2024
In this draft PR - package-url/packageurl-python#174, for now I've updated only the purl2url for github
Similar to this, golang pypi cargo etc also use version (which has potential spaces) from the purl_data to form inferred URL, If @tdruez is not working on the issue already, i can update those too
OmkarPh commentedon Nov 5, 2024
Also, if we try to add package using purl -

pkg:github/facebook/sapling@0.2.20240718-145624%20f4e9df48it resolves to incorrect download URL with a space instead of
+I've fixed this too in the PR
DennisClark commentedon Nov 5, 2024
@OmkarPh thanks for working on this; we'll try to get it reviewed soon.