Skip to content

Raise an error if query string has multiple definitions#1338

Merged
davidism merged 1 commit into
pallets:masterfrom
pgjones:master
Jul 29, 2018
Merged

Raise an error if query string has multiple definitions#1338
davidism merged 1 commit into
pallets:masterfrom
pgjones:master

Conversation

@pgjones

@pgjones pgjones commented Jul 29, 2018

Copy link
Copy Markdown
Member

Previously to this commit if when creating an environ (i.e. for
testing) a query string is defined in the path and as an argument the
path-query-string would be ignored. This results in the path not
matching any routes and hence an unexpected result. This commit fixes
this issue by raising a ValueError if someone should do this.

Raising ValueError is considered the correct approach as it is unclear
which individual query string is the user's intention or if they
should be combined.

Previously to this commit if when creating an environ (i.e. for
testing) a query string is defined in the path and as an argument the
path-query-string would be ignored. This results in the path not
matching any routes and hence an unexpected result. This commit fixes
this issue by raising a ValueError if someone should do this.

Raising ValueError is considered the correct approach as it is unclear
which individual query string is the user's intention or if they
should be combined.
@davidism davidism merged commit 816a1e9 into pallets:master Jul 29, 2018
@davidism

Copy link
Copy Markdown
Member

Thanks, I added a changelog entry in master. Remember to use separate branches for PRs. :-)

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants