Skip to content
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

URI authority should start with word characters #61

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

pileks
Copy link
Contributor

@pileks pileks commented Jul 19, 2023

Following an investigation into failing tests in our schema-compose package as part of work on polywrap/wrap-cli#1827 , I have found out that our Uri implementation accepts strings like ./some/path and ../some/path as valid URIs, with their authority being . and .. respectively.

This PR introduces a check wherein our authority needs to start with a word character (alphanumerics and underline).

I have deliberately kept it wide open beyond this, as I don't want to limit it too far while still closing this gap.

Nota Bene: This does seem to be a regression caused by us simply not having tests for this case when we were doing simplification of URI parsing: 2906388

@dOrgJelli dOrgJelli merged commit 6e19bd0 into origin-dev Jul 19, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants