-
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
Error using List as @RequestParam #162
Comments
Hey @Juchar, the exception thrown says that Spring cannot instantiate a |
@sapessi Additionally I also updated the library to Now I do not have an error anymore, but the result is also not correct:
|
Hey @Juchar, the first issue is expected. It's caused by the fact that API Gateway uses a simple In the second case, it looks like Spring is not |
Sigh, it does indeed look like a bug. I'll work on it and publish a 1.1.3 later today. I'll resolve this tickets once it's out. |
…me from request decoded. the getQueryString return an encoded string.
Hey @Juchar, could you test with |
@Juchar, Release |
@sapessi Did not have the time on the weekend but just tried it out and it seems that everything works. Thank you for the quick solution! Great support! |
Scenario
Using
List<T>
as a@RequestParam
and executing the request/test?list=1,2,3
.Expected behavior
Executing the request locally by starting Spring Boot the list is filled correctly.
Actual behavior
An exception occurs.
Steps to reproduce
Implement the following method in a controller:
sam.yml:
Execute:
/test?list=1,2,3
or/test?list=1&list=2&list=3
on the Lambda URL.Full log output
The text was updated successfully, but these errors were encountered: