The contents of ejb-ql queries is not 'escaped'
-----------------------------------------------

         Key: XDP-185
         URL: http://jira.codehaus.org/browse/XDP-185
     Project: XDoclet 2 Plugins
        Type: Bug

  Components: ejb  
    Versions: plugin-ejb    
    Reporter: Ive Hellemans


Hi there,

When an ejb-ql query contains greater then or less then characters, the 
generated XML is considered as being invalid because these characters are not 
escaped.

I think this can be avoided by changing beans.jelly:

replace
        <ejb-ql>${finderTag.query}</ejb-ql>
by
        <ejb-ql>&lt;![CDATA[${finderTag.query}]]&gt;</ejb-ql>

and replace
        <ejb-ql>${selectMethod.getTagByName('ejb.select').query}</ejb-ql>
by
        
<ejb-ql>&lt;![CDATA[${selectMethod.getTagByName('ejb.select').query}]]&gt;</ejb-ql>

Regards,
Ive

PS: A similar change should probably be done to escape descriptions etc also.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to