[wp-trac] [WordPress Trac] #10521: Schema error breaks XMLRPC image uploading

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 30 14:45:09 UTC 2009


#10521: Schema error breaks XMLRPC image uploading
--------------------------+-------------------------------------------------
 Reporter:  Otto42        |       Owner:  josephscott
     Type:  defect (bug)  |      Status:  new        
 Priority:  high          |   Milestone:  Unassigned 
Component:  XML-RPC       |     Version:             
 Severity:  major         |    Keywords:             
--------------------------+-------------------------------------------------
 Issue is described in greater detail here:
 http://ardentdev.com/fix-for-wordpress-xmlrpc-500-internal-server-error/

 Short version: Uploading an image or other attachment via XMLRPC tries to
 set the post_parent of the upload to -1, and then changes the value to the
 correct ID after the post is created and the ID is known.

 In WordPress 2.8 and up, this fails, because the schema changed to define
 the post_parent as unsigned, so -1 becomes invalid. This disables the
 capability for image attachments to work via XMLRPC uploads.

 Fix: Either change the way uploads work (use a 0 for post_parent perhaps?)
 or change the schema back to not being unsigned on post_parent.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10521>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list