[jboss-jira] [JBoss JIRA] Closed: (JBRULES-393) Xml dump with illegal characters

Mark Proctor (JIRA) jira-events at jboss.com
Sat Aug 19 21:49:11 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBRULES-393?page=all ]

Mark Proctor closed JBRULES-393.
--------------------------------

    Fix Version/s: 3.1-m1
       Resolution: Done

> 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
>             Fix For: 3.1-m1
>
>         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 (&lt;, &gt;, &amp), 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