cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marek Šabo (JIRA) <j...@apache.org>
Subject [jira] [Updated] (CAY-1581) Not-Escaping <> during serialization to *.map.xml
Date Wed, 06 Jul 2011 13:03:16 GMT

     [ https://issues.apache.org/jira/browse/CAY-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marek Šabo updated CAY-1581:
----------------------------

    Component/s:     (was: Modeler)
                 Core Library

I dug around a little and seems the problem is not in modeler part. This instance specifically
fails in org.apache.cayenne.map.ObjAttribute 's encodeAsXML method. Question is how to tackle
this. Whether or not to allow special chars (&quot; &apos; &lt; &gt; &amp;)
in modeler input or add utility method that would escape aforementioned characters during
serialization.

> Not-Escaping <> during serialization to *.map.xml
> -------------------------------------------------
>
>                 Key: CAY-1581
>                 URL: https://issues.apache.org/jira/browse/CAY-1581
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.0.1
>            Reporter: Marek Šabo
>            Assignee: Dzmitry Kazimirchyk
>
> Object entity -> attributes tab -> type column
> E.g. when using custom types (extended types) you specify custom class name in the type
column. Sometimes it needs to be parametrized type, e.g. Validator<Integer>. During
save the modeler fails to escape <> and thus the serialized *.map.xml becomes invalid
(and subsequently can't be read by modeler). When escaped as &lt; and &gt; , modeler
loads the project successfully. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message