-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Warnings about "unable to parse form content" are not helpful for troubleshooting #6268
Comments
jetty version: 9.4.35 |
You probably don't want information about the server configuration (max form size) leaking to clients - could give attackers information. |
Of course, can we compromise? For example, print the detailed reason to the debug log |
Of course, ERROR log is better |
We could do Log.WARN level with the original message eg "Form is larger than max length xxx". This wouldn't be a full stack trace, as attackers can force this to happen and cause resources on the server to be exhausted (ie gigantic log files). |
Signed-off-by: Jan Bartel <janb@webtide.com>
Signed-off-by: Jan Bartel <janb@webtide.com>
very will,thanks for jetty project team! |
java version "1.8.0_291"
Linux/CentOS 7
Description
I noticed that org.eclipse.jetty.server.Request#getParameters
IllegalStateException will be decorated into BadMessageException
And the Exception Message will be BadMessageException's message.
This is unreasonable.I care about IllegalStateException's message instead of BadMessageException's message!
e.g.
if the body size exceed the limit,extractContentParameters() method will throw IllegalStateException with message Form is larger than max length xxx
and in org.eclipse.jetty.server.Request#getParameters#getParameters() will be be decorated into BadMessageException with message Unable to parse form content
log will print Unable to parse form content not Form is larger than max length xxx
Think Form is larger than max length xxx is more useful than Unable to parse form content
The text was updated successfully, but these errors were encountered: