cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Pfingsthorn" <m.pfingsth...@hippo.nl>
Subject RE: Bug in Cocoon Forms libraries
Date Mon, 10 Oct 2005 14:59:20 GMT
Hi!

Yes, I fixed this already, along with some other errors which sneaked into the code during
integration, I suppose. I will make a patch for this tonight so it can get fixed as soon as
possible.

Bye!
max

> -----Original Message-----
> From: Sergio Bossa [mailto:s.bossa@pronetics.it]
> Sent: Monday, October 10, 2005 16:40
> To: dev@cocoon.apache.org
> Subject: Bug in Cocoon Forms libraries
> 
> 
> 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