You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by "Thomas Vandahl (JIRA)" <ji...@apache.org> on 2009/01/06 21:33:44 UTC
[jira] Resolved: (TRB-68) Intake doesn't correctly parse the
message of a rule or required-message from intake.xml
[ https://issues.apache.org/jira/browse/TRB-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Vandahl resolved TRB-68.
-------------------------------
Resolution: Fixed
Assignee: Thomas Vandahl
Fixed in SVN, AFAICT. A test case is missing.
> Intake doesn't correctly parse the message of a rule or required-message from intake.xml
> ----------------------------------------------------------------------------------------
>
> Key: TRB-68
> URL: https://issues.apache.org/jira/browse/TRB-68
> Project: Turbine
> Issue Type: Bug
> Components: Fulcrum
> Reporter: Ronny Völker
> Assignee: Thomas Vandahl
>
> The Method org.apache.fulcrum.intake.transform.XmlToAppData.caracters is buggy.
> It assumes that the content of a rule element is delivered in one chunk, which violates the contract of the method it overrides (see javadoc of org.xml.sax.Contenthandler.characters).
> Example:
> Rule-element: <rule name="mask" value=".+@.+\..+">intake_EnterEmailValidAddress</rule>
> The content of the element is delivered in two chunks (two calls of XmlToAppData.caracters).
> The first chunk contains "intake_EnterEmailValidA".
> The second chunk contains "ddress".
> As a result the message for the rule is set to "ddress" instead of "intake_EnterEmailValidAddress".
> This problem may affect the parsing of any element of type "required-message" or "rule" anywhere in intake.xml.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.