-
Notifications
You must be signed in to change notification settings - Fork 560
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
ArrayIndexOutOfBounds when parsing query string with no value #363
Comments
…PI support where we have a query string key, followed by a value declarator (=), but then no value
@sapessi seems that you already raised and fixed the bug I was opening (which I had reported to AWS support a few hours back). |
Yeah @srp321 - I created this because support contacted me. I hope to have a 1.5.1 path release out today - latest tomorrow. I'll update this issue once it's done. |
that's great news! |
* fix: Adding pathParameters to v2 proxy event as reported in #358. * fix: Address JSON content type issue reported in #352 and #344 * fix: Fixed bug caught by integration tests for #352 * fix: Fix struts tests for the changes made for #352 * test: Attempting to replicate the issue reported in #342 * test: Reverting exception test in Spring package since it's only available in Spring5, not Spring4 * fix: Sigh, forgot to remove the import for the class that doesn't exist from the previous commit * fix: Addresses bug reported in query string parsing (#363) for HTTP API support where we have a query string key, followed by a value declarator (=), but then no value * chore: Update GitHub issue and PR templates * fix: Fixed issue reported by SpotBugs with the exception logging of the HTTP API query string parsing
Release |
* fix: Adding pathParameters to v2 proxy event as reported in aws#358. * fix: Address JSON content type issue reported in aws#352 and aws#344 * fix: Fixed bug caught by integration tests for aws#352 * fix: Fix struts tests for the changes made for aws#352 * test: Attempting to replicate the issue reported in aws#342 * test: Reverting exception test in Spring package since it's only available in Spring5, not Spring4 * fix: Sigh, forgot to remove the import for the class that doesn't exist from the previous commit * fix: Addresses bug reported in query string parsing (aws#363) for HTTP API support where we have a query string key, followed by a value declarator (=), but then no value * chore: Update GitHub issue and PR templates * fix: Fixed issue reported by SpotBugs with the exception logging of the HTTP API query string parsing
Scenario
When sending a request that contains a query string parameter with no value
AwsHttpApiV2ProxyHttpServletRequest
throws anArrayIndexOutOfBoundsException
Expected behavior
Parses the query string correctly and sets a null value for the parameter name
Steps to reproduce
Create an application that receives a query string parameter behind AWS HTTP APIs and send a request with the parameter, the
=
value separator, and no value:`curl https://sample-api/params?user=
Full log output
The text was updated successfully, but these errors were encountered: