Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2015-11-23 16:29:55 -0500
committerJoakim Erdfelt2015-11-23 16:29:55 -0500
commit482e30045a43b2255e2c72cadc25ad484a75d382 (patch)
tree579a95eba9874016cea7d000910e0ddee67447dc
parentcda95e1f17eaf3195859b84504abb48fcaa85345 (diff)
downloadorg.eclipse.jetty.project-bugs/9.4-ports.tar.gz
org.eclipse.jetty.project-bugs/9.4-ports.tar.xz
org.eclipse.jetty.project-bugs/9.4-ports.zip
482172 - Report form key size count in UrlEncoded exceptionsbugs/9.4-ports
+ Fixing ISE message format/syntax
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java b/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java
index e776c9a4d5..f6c3419abe 100644
--- a/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java
+++ b/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java
@@ -453,7 +453,7 @@ public class UrlEncoded extends MultiMap<String> implements Cloneable
key = null;
value=null;
if (maxKeys>0 && map.size()>maxKeys)
- throw new IllegalStateException("Form too many keys");
+ throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
break;
case '=':
@@ -499,7 +499,7 @@ public class UrlEncoded extends MultiMap<String> implements Cloneable
break;
}
if (maxLength>=0 && (++totalLength > maxLength))
- throw new IllegalStateException("Form too large");
+ throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
}
if (key != null)
@@ -555,7 +555,7 @@ public class UrlEncoded extends MultiMap<String> implements Cloneable
key = null;
value=null;
if (maxKeys>0 && map.size()>maxKeys)
- throw new IllegalStateException("Form too many keys");
+ throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
break;
case '=':
@@ -629,7 +629,7 @@ public class UrlEncoded extends MultiMap<String> implements Cloneable
LOG.debug(e);
}
if (maxLength>=0 && (++totalLength > maxLength))
- throw new IllegalStateException("Form too large");
+ throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
}
if (key != null)
@@ -751,7 +751,7 @@ public class UrlEncoded extends MultiMap<String> implements Cloneable
key = null;
value=null;
if (maxKeys>0 && map.size()>maxKeys)
- throw new IllegalStateException("Form too many keys");
+ throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
break;
case '=':
if (key!=null)
@@ -797,7 +797,7 @@ public class UrlEncoded extends MultiMap<String> implements Cloneable
totalLength++;
if (maxLength>=0 && totalLength > maxLength)
- throw new IllegalStateException("Form too large");
+ throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
}
size=output.size();

Back to the top