-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: unencoded subpath cannot contain . or .. #368
Conversation
supercedes package-url#52 Signed-off-by: Jeremy Long <jeremy.long@gmail.com>
I'm wondering if this is actually a good idea. I can agree that the subpath should not contain |
why? i mean, this is already part of the spec:
per spec, the |
Then these tests are wrong, right? They have |
This comment was marked as outdated.
This comment was marked as outdated.
My problem is that a human reading The same could be said for |
this would be a change of the current spec. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sorry to comment on a closed pull request, but the After the segments are dropped, the resulting |
please open a pull request or annotate the code you are referring to. please be aware of the purpose of the test components:
|
Opened #404 with an explanation. |
This change makes the two test pass that were introduced in package-url/purl-spec#368. See also package-url/purl-spec#404.
This change makes the two test pass that were introduced in package-url/purl-spec#368. See also package-url/purl-spec#404.
Add test cases to check for invalid
.
and..
segments in the subpath.