|
From: libwbxml <ti...@op...> - 2012-08-09 12:05:08
|
#84: Wrong encoding of XML to WBXML when the XML has multiple namespaces
-----------------------+----------------------
Reporter: paras | Owner: somebody
Type: issue | Status: new
Priority: important | Milestone:
Component: wbxml2 | Version:
Severity: other | Keywords:
-----------------------+----------------------
Consider the following XML:
{{{
<?xml version="1.0" ?><Sync
xmlns="AirSync"><Collections><Collection><Class>Email</Class><SyncKey>0</SyncKey><CollectionId>8</CollectionId><Options><FilterType>0</FilterType><BodyPreference
xmlns="AirSyncBase"><Type>2</Type></BodyPreference></Options></Collection></Collections><WindowSize>2</WindowSize></Sync>
}}}
The WBXML produced by libwbxml v0.11.2 is:
{3,1,106,0,69,92,79,80,3,69,109,97,105,108,0,1,75,3,48,0,1,82,3,56,0,1,87,88,3,48,0,1,0,17,69,0,7,74,3,50,0,1,1,1,1,1,0,0,85,3,50,0,1,1}
The EAS server throws an error with this wbxml.
When I use another WBXML encoder, I get the WBXML as
{3,1,106,0,69,92,79,80,3,69,109,97,105,108,0,1,75,3,48,0,1,82,3,56,0,1,87,88,3,48,0,1,0,17,69,70,3,50,0,1,1,1,1,1,0,0,85,3,50,0,1,1}
The difference is 3 bytes in libwbxml: 0,7,74 (it should be just on byte:
70)
PS: I am using the function wbxml_conv_xml2wbxml_disable_public_id.
--
Ticket URL: <https://libwbxml.opensync.org/ticket/84>
libwbxml <http://libwbxml.opensync.org/>
WBXML Library
|