-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: warn on malformed URI query parameter #11489
base: master
Are you sure you want to change the base?
fix: warn on malformed URI query parameter #11489
Conversation
if (pathEnd != std::string::npos && fragmentStart != std::string::npos) { | ||
if (pathEnd != std::string::npos && fragmentStart != std::string::npos && url[pathEnd] == '?') { |
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.
It was possible to pass the fragment as a "query" with the following flakeRef.
.#bla
I don't think this was expected behavior, since the above doesn't have a query.
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.
Could you add a test in functional that checks for the warning? Here is an example: d22a2fe
You can use grepQuiet for filtering.
f53b144
to
a798569
Compare
@Mic92 I added some tests in |
f9cead0
to
b04005a
Compare
196c65e
to
33b8aa6
Compare
CI on macOS seems to been canceled whilst it was running. |
tests run locally on macOS: Ok: 151 |
I also ran a |
33b8aa6
to
6c93bf1
Compare
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.
CI is green now.
cc: @tomberek @roberth @Mic92
Motivation
Retry of #11349
Context
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.