cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Bossa <s.bo...@pronetics.it>
Subject Bug in Cocoon Forms libraries
Date Mon, 10 Oct 2005 14:39:56 GMT
Hello all,

While playing with some of the new features, I noticed a serious bug in 
the brand new org.apache.cocoon.forms.formmodel.library.Library class, 
which causes an ArrayIndexOutOfBoundsException.
Take a look at the following piece of code, from the 
getDefinition(String key) method:

String[] parts = StringUtils.split(SEPARATOR);
librarykey = parts[0];
definitionkey = parts[1];

The problem is clearly a misuse of the split() method.

I think it should be corrected in:

StringUtils.split(key, SEPARATOR);

Please, let me know.

Regards,

Sergio B.

-- 
Sergio Bossa (http://sbtourist.blogspot.com/)
- Pro-Netics s.r.l. (http://www.pro-netics.com)
- Montag (http://montag.sourceforge.net)
- QuickNote (http://quicknote.sourceforge.net)

Mime
View raw message