LordVeovis / xmlrpc

A port of CookComputing.XmlRpcV2 for dotnet core 2
MIT License
33 stars 21 forks source link

Accessing Odoo HTML fields crashes #22

Closed chrisandrewmann closed 3 years ago

chrisandrewmann commented 3 years ago

Hi there,

I reported this to Odoo thinking the fault was at their end. https://github.com/odoo/odoo/issues/74884 I've tested this thoroughly with all versions of Odoo and seems to be common. Also have tried the original CookComputing XMLRPC v2.5, v3.0 and this version. All have same issues. The end response was that Odoo is apparently providing XML data correctly, by escaping the embedded HTML content into the XML tag content.

Example:

<methodResponse>
<params>
<param>
<value><array><data>
<value><struct>
<member>
<name>id</name>
<value><int>24</int></value>
</member>
<member>
<name>description</name>
<value><string>&lt;br&gt;</string></value>
</member>
</struct></value>
</data></array></value>
</param>
</params>
</methodResponse>

Example error from XMLRPC client in C#: The 'br' start tag on line 13 position 20 does not match the end tag of 'p'. Line 13, position 25. Error: "Response from server does not contain valid XML."

Any ideas? Great job on the port of this project by the way!