Skip to content
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

Issue #6268 Log max form size exceeded msg. #6301

Merged

Conversation

janbartel
Copy link
Contributor

Closes #6268

Log the "Form is larger than max length ???" and "Cannot extract parameters with async IO" messages without stacktraces from Request.extractFormParameters() method to give better info on the server side rather than the generic BadMessageException "Unable to parse form content" message.

@@ -436,6 +436,7 @@ private void commitSession(Session session)
}
catch (IllegalStateException | IllegalArgumentException e)
{
LOG.warn(e.getLocalizedMessage());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally we've just logged e.toString(). Is this better?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toString() calls getLocalizedMessage() after prepending the classname. I'll change it to toString().

Signed-off-by: Jan Bartel <[email protected]>
@janbartel janbartel requested a review from gregw May 20, 2021 23:25
@janbartel janbartel merged commit 6f148bb into jetty-9.4.x May 25, 2021
@janbartel janbartel deleted the jetty-9.4.x-6268-log-max-form-size-exceeded-msg branch May 25, 2021 00:00
janbartel added a commit that referenced this pull request May 25, 2021
* Issue #6268 Log max form size exceeded msg.

Signed-off-by: Jan Bartel <[email protected]>
janbartel added a commit that referenced this pull request May 25, 2021
* Issue #6268 Log max form size exceeded msg.

Signed-off-by: Jan Bartel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants