Kevin Meyer created ISIS-269:
--------------------------------
Summary: The XML object store cannot handle all "char" values
Key: ISIS-269
URL: https://issues.apache.org/jira/browse/ISIS-269
Project: Isis
Issue Type: Bug
Components: Core: MetaModel, Runtimes: Dflt: Objectstores: XML
Affects Versions: 0.2.0-incubating
Reporter: Kevin Meyer
Priority: Minor
The XML object store relies on "facet.toEncodedString(associatedObject)" to
return an XML compatible representation of the property value.
For "char", this encoded string is the raw character.
Which for values < 32, kills the XML decoder with "invalid unicode character
.." exceptions.
e.g. for character value (char) (20):
The exception is:
[Fatal Error] :6:31: An invalid XML character (Unicode: 0x14) was found in the
element content of the document.
The XML file contains:
<value field="charProperty">|</value>
(The actual character did not survive "copy&paste")
If I use (char) 255:
The XML file contains:
<value field="charProperty">ΓΏ</value>
Whether this is a problem with the char encoder or XML, is perhaps up for
debate.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira