Menu

#3 XmlRpcResponse.unmarshal() incorrectly decodes untyped value

v2.x
wont-fix
nobody
None
5
2013-10-04
2013-09-25
No

mimic.js version 2.3, class XmlRpcResponse, method unmarshal incorrectly decodes untyped value.

If the called procedure returns one untyped scalar, e.g.

<methodResponse>
  <params>
    <param><value>2.33.01.alpha</value></param>
  </params>
</methodResponse>

unmarshal() returns undefined value instead of "2.33.01.alpha"

Similarly, if the response is array of untyped values

<array><data><value>...</value><value>...</value></data></array>

then unmarshal() returns empty array instead of array of values

Discussion

  • Carlos Eduardo Goncalves

    This issue is invalid, because Mimic was created to be compliant with XML-RPC specification, it will not unmarshall invalid responses like this particular one.
    For more information about XML-RPC protocol specification http://xmlrpc.scripting.com/spec.html

    Regards.

     

    Last edit: Carlos Eduardo Goncalves 2013-10-04
    • Kazantsev Alexey

      Specification allow untyped values and interpret it as string:
      "If no type is indicated, the type is string."

       
  • Carlos Eduardo Goncalves

    • status: open --> wont-fix
     
  • Carlos Eduardo Goncalves

    • Group: v2.X --> v2.x
     

Log in to post a comment.