Author: jfrederic.clere(a)jboss.com
Date: 2013-02-13 05:15:43 -0500 (Wed, 13 Feb 2013)
New Revision: 2164
Modified:
branches/2.1.x/java/org/apache/catalina/connector/Request.java
Log:
Fix for JBPAPP-9398.
Modified: branches/2.1.x/java/org/apache/catalina/connector/Request.java
===================================================================
--- branches/2.1.x/java/org/apache/catalina/connector/Request.java 2013-02-13 00:58:42 UTC
(rev 2163)
+++ branches/2.1.x/java/org/apache/catalina/connector/Request.java 2013-02-13 10:15:43 UTC
(rev 2164)
@@ -85,6 +85,8 @@
protected static final boolean SESSION_ID_CHECK =
Boolean.valueOf(System.getProperty("org.apache.catalina.connector.Request.SESSION_ID_CHECK",
"false")).booleanValue();
+ protected static final boolean THROW_POST_TOO_LARGE =
+
Boolean.valueOf(System.getProperty("org.apache.catalina.connector.Request.THROW_POST_TOO_LARGE",
"false")).booleanValue();
// ----------------------------------------------------------- Constructors
@@ -2543,7 +2545,10 @@
if (context.getLogger().isDebugEnabled()) {
context.getLogger().debug("Post too large");
}
- return;
+ if (THROW_POST_TOO_LARGE)
+ throw new IllegalStateException("Post too large");
+ else
+ return;
}
byte[] formData = null;
if (len < CACHED_POST_LEN) {
Show replies by date