wbemcli throws a parser error on CDATA value on a property of string type. This only occurs if the fix for bug ID 3202420 is applied.
Example data and error display:
<PROPERTY NAME="PrimaryOwnerContact" TYPE="string">
<VALUE><![CDATA[root@galant2; <sample, cdata & value>]]></VALUE>
</PROPERTY>
*
* ./wbemcli: Parse Exception: Expecting /VALUE element
*
Proposed fix attached.
Proposed fix
Committed to CVS Head.
This fix seems incomplete in combination with ID 3202420 if the string property contains XML with embedded CDATA, i.e. (expanding the above example)
<PROPERTY NAME="PrimaryOwnerContact" TYPE="string">
<VALUE><email><![CDATA[root@galant2; <sample, cdata & value>]]></email></VALUE>
</PROPERTY>
The strncmp() call looking for "<![CDATA[" only looks for 8 characters while the string is 9 characters long !