-
Notifications
You must be signed in to change notification settings - Fork 80
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: request.getUri should respond include path and query values #1853
Conversation
see: #1848
...on-aws-api-proxy/src/main/java/io/micronaut/function/aws/proxy/ApiGatewayServletRequest.java
Show resolved
Hide resolved
@@ -55,7 +55,11 @@ public APIGatewayV2HTTPEventServletRequest( | |||
super( | |||
conversionService, | |||
requestEvent, | |||
URI.create(requestEvent.getRequestContext().getHttp().getPath()), | |||
ApiGatewayServletRequest.buildUri( | |||
requestEvent.getRequestContext().getHttp().getPath(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use rawPath
and rawQuery
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the advantage of using rawPath and rawQuery? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to parse and treat it
You can just join it, e.g.: ${path}?${query}
Kudos, SonarCloud Quality Gate passed! |
see: #1848
I added the same test to the core TCK I have added a test in the TCK micronaut-projects/micronaut-core#9791