Skip to content

SPR-17338. Do not throw ServerWebInputException when mandatory request parameter is present #1978

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

Closed

Conversation

DmytoMrachkovskyi
Copy link
Contributor

@DmytoMrachkovskyi DmytoMrachkovskyi commented Oct 4, 2018

ServerWebInputException is throw each time Http request with mandatory request parameters is handled in AbstractNamedValueArgumentResolver. Even though this does not brake request handling flow, exception (and stack trace) is generated each time and it has performance impact.

The solution: Default value should be evaluated only if request parameter is empty:

JIAR ticket

@rstoyanchev
Copy link
Contributor

This has been merged. Thanks for the report and fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants