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

🐛 fix unquote issue with querystring handling. #1264

Merged
merged 8 commits into from
Sep 7, 2023

Conversation

monkut
Copy link
Collaborator

@monkut monkut commented Aug 16, 2023

Description

Reverts unquote usage when preparing the wsgi environ "QUERY_STRING".

A previous request (#879) was raised to have the content of the "QUERY_STRING" value unquoted (percent encoding decoded), however, it was later reported that the introduction of unquote caused an issue in querystring parsing in flask. (#1227)

This PR updates and adds testcases to assure that the "queryStringParameters" are properly converted into the "QUERY_STRING" value required by wsgi environ.

GitHub Issues

#1227

@coveralls
Copy link

coveralls commented Aug 16, 2023

Coverage Status

coverage: 74.681% (-0.007%) from 74.688% when pulling ee74dcf on fix/ampersand-in-querystring-not-supported into f2f03ba on master.

@esc5221
Copy link

esc5221 commented Aug 31, 2023

this should be fixed...

zappa/wsgi.py Show resolved Hide resolved
@colinhoernig
Copy link

Thanks for the fix @monkut and approval @hellno! We're experiencing this issue in production deployments and look forward to the merge & release of this fix.

Copy link
Collaborator

@goya813 goya813 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@monkut monkut merged commit f0b51ac into master Sep 7, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants