[ #306605 ] Marshalling of SyncML object to xml problem
Date: 2007-01-29 14:51
Priority: 5
Submitted By: Dilip Vedula (vedil)
Assigned To: Stefano Nichele (nichele)
Category: server dm
State: Open
Summary: Marshalling of SyncML object to xml problem
Detailed description: in WBXMLTools.java
in method public static byte[] toWBXML(SyncML msg)
at line c.marshalDocument(msg, "UTF-8", null, bout);
String inputXml = new String(bout.toByteArray());
when XML file contains CDATA tag (ex:
<Package>
<Operation
action_id = "Add"
target_id = "roles_mapping_policy"
use_bearer_certificate = "true">
<Data>
<![CDATA[ ***]]>
</Data>
</Operation>
</Package>
)
the CDATA part after being marshaled contains "]]]]" where as it should have
been "]]".
Date: 2007-02-21 14:11
Sender: cristiano
Logged In: YES
user_id=11773
Accepted. Eligible for the Bag-a-Bug Program. 1 point.
Bug inserted in Bugzilla 2064
Date: 2007-01-29 15:17
Sender: vedil
Logged In: YES
user_id=11570
as temporary fix what we have done is, after this line
String inputXml = new String(bout.toByteArray());
inputXml = inputXml.replace("]]", "]");