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)