diff options
author | Joakim Erdfelt | 2015-11-23 21:29:55 +0000 |
---|---|---|
committer | Joakim Erdfelt | 2015-11-23 21:29:55 +0000 |
commit | 482e30045a43b2255e2c72cadc25ad484a75d382 (patch) | |
tree | 579a95eba9874016cea7d000910e0ddee67447dc | |
parent | cda95e1f17eaf3195859b84504abb48fcaa85345 (diff) | |
download | org.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.java | 12 |
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(); |