Revision: 1077
http://stripes.svn.sourceforge.net/stripes/?rev=1077&view=rev
Author: bengunter
Date: 2009-03-01 02:58:17 +0000 (Sun, 01 Mar 2009)
Log Message:
-----------
Bug fix for STS-617: Throw a ParseException if a parameter name is empty, as in
/foo/{} or /foo/{=value}
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
2009-03-01 02:25:44 UTC (rev 1076)
+++ trunk/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
2009-03-01 02:58:17 UTC (rev 1077)
@@ -670,6 +670,12 @@
escape = false;
}
+ // Parameter name must not be empty
+ if (name.length() < 1) {
+ throw new ParseException(string, "Empty parameter name in URL
binding for "
+ + beanClass.getName());
+ }
+
String dflt = defaultValue.length() < 1 ? null :
defaultValue.toString();
if (dflt != null &&
UrlBindingParameter.PARAMETER_NAME_EVENT.equals(name.toString())) {
throw new ParseException(string, "In ActionBean class " +
beanClass.getName()
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development