We just found a nasty bug in Intake.  I created a bug in Scarab: TTWS63.
Unfortunately, I can't seem to set the version of Turbine in the issue, but it is 
Turbine 2.3 and seems to still exist in 2.3.1-dev and in HEAD.

The characters() callback in XmlToAppData.java does not expect multiple callbacks for 
data in the same element.  What makes the bug nasty is that it can appear/disappear or 
possibly move depending upon subtle changes in intake.xml. We deleted some of the 
boilerplate comments and the problem went away (or perhaps shifted to a different 
rule.)  It all depends on where the SAX parser decides to end a chunk and start 
another.

We were seeing a rule message being displayed improperly. e.g. "The password must be 
at least 4 characters" was being displayed as "s". It turns out the "s" was the last 
character of the correct string. By debugging in Eclipse we determined that the SAX 
characters() method in XmlToAppData.java was not expecting to be called twice with two 
parts of the element data. Rather than appending the "s" to the first part of the data 
it was replacing the first part of the message.

The fix is to append the second chunk in an element to the chunk received from the 
first characters callback.

If there is a fix in the works, please let me know.  Otherwise we'll try to submit a 
patch tomorrow.

Regards,

Sean

-- 
---------------------------------------------------------------------------
M. Sean Gilligan                    : 831-466-9788 x11
Catalla Systems, Inc.
---------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to