[wp-trac] [WordPress Trac] #10521: Schema error breaks XMLRPC image uploading
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 30 20:32:33 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: 2.8
Severity: major | Keywords:
--------------------------+-------------------------------------------------
Comment(by Otto42):
Replying to [comment:5 Denis-de-Bernardy]:
> It shouldn't be any problem. It might be the software that's using the
XML-RPC interface. But still, we could catch a negative parent and turn
that into a 0 instead...
Oh, no, the client software is not sending it. It's in the xmlrpc.php
file, definitely.
Line 2877 is where it gets set to -1 when the image is uploaded.
Line 2272 is where it searches for the -1 entries and corrects their
parent id's (after the actual post comes in and gets created, since
uploads happen first).
My worry is that we're using zero in that field somewhere else for
something else and using that could cause interference. But I don't think
that will be an issue, just that it's possible.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10521#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list