You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting up a lambda proxy, query parameters end up having + converted to a space (). This is a problem when hooking up a Lambda to the AWS API Gateway as the gateway auto-decodes query parameters before passing them to the Lambda. So for example, foo%2Bbar will get decoded to foo+bar, passed on to the Lambda, but then Micronaut will then convert this into the value foo bar.
Actual Behaviour
Expected + to not be auto-converted to space () for query parameters.
Expected Behavior
This is a similar bug to #656.
When setting up a lambda proxy, query parameters end up having
). This is a problem when hooking up a Lambda to the AWS API Gateway as the gateway auto-decodes query parameters before passing them to the Lambda. So for example,
+
converted to a space (foo%2Bbar
will get decoded tofoo+bar
, passed on to the Lambda, but then Micronaut will then convert this into the valuefoo bar
.Actual Behaviour
Expected
) for query parameters.
+
to not be auto-converted to space (Steps To Reproduce
Clone https://github.com/AndrejMitrovic/micronaut-plus-bug-demo
And run:
gradle test -i
The expected output is:
Query parameter is: foo+bar
But the actual output is:
Query parameter is: foo bar
Environment Information
OS: Windows 10
JDK: temurin-11
Example Application
https://github.com/AndrejMitrovic/micronaut-plus-bug-demo
Version
Micronaut v2.1.2
The text was updated successfully, but these errors were encountered: