ASF Bugzilla – Attachment 32821 Details for
Bug 58031
Posting data exceeding maxPostSize should result in HTTP 413.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Initial draft of patch, created against trunk.
201506130312-maxPostSize-413.patch (text/plain), 1.22 KB, created by
Christopher Simons
on 2015-06-13 07:42:06 UTC
(
hide
)
Description:
Initial draft of patch, created against trunk.
Filename:
MIME Type:
Creator:
Christopher Simons
Created:
2015-06-13 07:42:06 UTC
Size:
1.22 KB
patch
obsolete
>Index: java/org/apache/catalina/connector/Request.java >=================================================================== >--- java/org/apache/catalina/connector/Request.java (revision 1685205) >+++ java/org/apache/catalina/connector/Request.java (working copy) >@@ -2714,6 +2714,8 @@ > // Value separator > postSize++; > if (postSize > maxPostSize) { >+ response.setStatus(HttpServletResponse >+ .SC_REQUEST_ENTITY_TOO_LARGE); > throw new IllegalStateException(sm.getString( > "coyoteRequest.maxPostSizeExceeded")); > } >@@ -3009,6 +3011,8 @@ > if (len > 0) { > int maxPostSize = connector.getMaxPostSize(); > if ((maxPostSize > 0) && (len > maxPostSize)) { >+ response.setStatus(HttpServletResponse >+ .SC_REQUEST_ENTITY_TOO_LARGE); > Context context = getContext(); > if (context != null && context.getLogger().isDebugEnabled()) { > context.getLogger().debug(
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58031
:
32821
|
32829