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: auto-unescape query parameters on ALB (#219, #241) #393

Conversation

fredericgermain
Copy link
Contributor

Issue #, if available:
#219, #241

Description of changes:
This will auto-unescape query parameters in ALB. And avoid the hacks found in #219
#241 was closed, because of ALB support in v4 maybe? But the unescape part was important in the ticket, but I couldn't see anything like that on the main branch.
It could be a breaking change for people who already handle this case. It's maybe better integrated on a mayor version.
It was made with the assumption that Api gateway ports already auto-unescape these parameters. But I'm not sure of that.
Some of the changes could be better made in src/event-sources/utils.js anyway.

Checklist

  • Tests have been added and are passing
  • Documentation has been updated

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@fredericgermain fredericgermain force-pushed the pr/escape_query_parameters_on_alb branch from 65fe415 to 91a8790 Compare March 25, 2021 19:04
@fredericgermain fredericgermain changed the title Auto-unescape query parameters on ALB (#219, #241). fix: auto-unescape query parameters on ALB (#219, #241) Mar 25, 2021
@brettstack
Copy link
Collaborator

Hey! Thanks for this. Could you add a test? 🙏

@glasser
Copy link

glasser commented Jun 9, 2021

Note that this also adds support for ALB messages that have queryStringParameters instead of multiQueryStringParameters (which is apparently an option). Looking forward to seeing it merged!

@brettstack brettstack merged commit 8cb4206 into CodeGenieApp:mainline Jun 9, 2021
github-actions bot pushed a commit that referenced this pull request Jun 9, 2021
## [4.3.9](v4.3.8...v4.3.9) (2021-06-09)

### Bug Fixes

* auto-unescape query parameters on ALB ([#219](#219), [#241](#241)) ([#393](#393)) ([8cb4206](8cb4206))
@github-actions
Copy link

github-actions bot commented Jun 9, 2021

🎉 This PR is included in version 4.3.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

@glasser
Copy link

glasser commented Jun 9, 2021

Thanks!

@brettstack
Copy link
Collaborator

Thanks @fredericgermain

OneDev0411 added a commit to OneDev0411/serverless-express that referenced this pull request Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants