https://bz.apache.org/bugzilla/show_bug.cgi?id=66415
Bug ID: 66415
Summary: Request.java HTTP Post too large error is overwritten
with reason UNKNOWN
Product: Tomcat 11
Version: 11.0.0-M1
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -------
If an HTTP Request has large data i.e. more than maxPostSize, the code sets the
FailedReason.POST_TOO_LARGE. Since this code is in try block, the following
finally{} block sets the code to UNKNOWN if success is set to false.
int maxPostSize = connector.getMaxPostSize();
if ((maxPostSize >= 0) && (len > maxPostSize)) {
Context context = getContext();
if (context != null && context.getLogger().isDebugEnabled()) {
context.getLogger().debug(
sm.getString("coyoteRequest.postTooLarge"));
}
checkSwallowInput();
parameters.setParseFailedReason(FailReason.POST_TOO_LARGE);
return;
}
followed by a finally block
finally {
if (!success) {
parameters.setParseFailedReason(FailReason.UNKNOWN);
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]