[jboss-jira] [JBoss JIRA] Updated: (JBRULES-393) Xml dump with illegal characters
Javier Prieto (JIRA)
jira-events at jboss.com
Wed Aug 16 05:06:26 EDT 2006
[ http://jira.jboss.com/jira/browse/JBRULES-393?page=all ]
Javier Prieto updated JBRULES-393:
----------------------------------
Attachment: XmlDumper.java
I forgot to fix the bug for return value expressions and predicate expressions (they allow to any Java expression and therefore '<', '>' and '&' characters ). I attach again the XmlDumper.java with modified 'visitPredicateDescr' and 'visitReturnValueDescr' methods
> Xml dump with illegal characters
> --------------------------------
>
> Key: JBRULES-393
> URL: http://jira.jboss.com/jira/browse/JBRULES-393
> Project: JBoss Rules
> Issue Type: Patch
> Security Level: Public(Everyone can see)
> Components: xml
> Affects Versions: 3.0.3
> Environment: Eclipse 3.2 with Drools IDE plug-in 3.0.3
> Reporter: Javier Prieto
> Assigned To: Mark Proctor
> Attachments: Main.java, testXmlDumper.drl, XmlDumper.java, XmlDumper.java
>
>
> Java operators contain illegal xml characters like '<', '>' and '&'. I've modified the XmlDumper.java to replace these illegal characters with their escaped equivalent (<, >, &), in order to fix the dump of blocks which contain java code. These are eval (java expressions), function body (java code) and rhs (java code). So, i've added 'replaceIllegalChars' method and i've modified 'visitFunctionDescr', 'visitEvalDescr' and 'processRules'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list