Author serhiy.storchaka
Recipients Nathan Williams, loewis, serhiy.storchaka
Date 2016-04-28.07:08:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461827282.45.0.348807391777.issue26873@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you. Your server produces a response containing nonstandard type tag "ex:nil" [1].

    <member><name>authority</name><value>ROLE_USER</value></member>
    <member><name>fromDate</name><value><ex:nil/></value></member>
    <member><name>userId</name><value><i4>15</i4></value></member>

xmlrpclib is unable to handle this tag, and error handling is poor. xmlrpclib can handle only standard types and "nil" [2].

What is worse, xmlrpclib silently ignores unsupported tag and interprets following name "userId" as a value of the name "fromDate", and following userId's value 15 as next name and so forth. Your workaround doesn't help since the result is totally broken. You get values as keys and keys as values.

What can we do with this issue?

1. Add better handling of unsupported tags. There is a bug, xmlrpc should detect this case and fail instead of producing unreliable result. This is applicable to 2.7.

2. Add support of some Apache extension tags. This is new feature and can be added in 3.6 only. Not all extension tags can be supported, "ex:serializable" is Java specific. This is separate issue.

Martin, do you agree?

[1] http://ws.apache.org/xmlrpc/types.html
[2] http://web.archive.org/web/20130120074804/http://ontosys.com/xml-rpc/extensions.php
History
Date User Action Args
2016-04-28 07:08:02serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, Nathan Williams
2016-04-28 07:08:02serhiy.storchakasetmessageid: <1461827282.45.0.348807391777.issue26873@psf.upfronthosting.co.za>
2016-04-28 07:08:02serhiy.storchakalinkissue26873 messages
2016-04-28 07:08:02serhiy.storchakacreate