[wp-trac] [WordPress Trac] #16980: Empty Values are ignored by class-ixr.php

WordPress Trac wp-trac at lists.automattic.com
Tue May 24 14:03:44 UTC 2011


#16980: Empty Values are ignored by class-ixr.php
------------------------------------+------------------------------
 Reporter:  nprasath002             |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  XML-RPC                 |     Version:  3.1
 Severity:  major                   |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------

Comment (by ericmann):

 Replying to [comment:18 nprasath002]:
 > Also specifications does not require to include a type

 Replying to [comment:17 solarissmoke]:
 > in this case wordpress is handling incorrectly.

 You're both partly right.  The specification does require a type, but if
 no type is provided, `<string />` is assumed.  From the spec:

 >If no type is indicated, the type is string.

 So yes, there is a problem that needs fixing ... but since there ''is'' a
 valid workaround (always include a type), it's not vital.  It's good form
 to always send a type anyway ... but it's also good form to assume that
 the clients sending you data don't really know what they're doing
 ([http://en.wikipedia.org/wiki/Robustness_principle Be conservative in
 what you send, be liberal in what you accept.]).

 Now the question arises, is this a bug in WordPress' handling of XML-RPC?
 Or is this a bug inherent in the IXR library we're using?  If it's an IXR
 issue, we should look at patching and fixing it with
 [http://scripts.incutio.com/xmlrpc/ them] ... otherwise, patch away here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16980#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list