[wp-trac] [WordPress Trac] #16445: Don't allow imported IDs to be greater than 2^31
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 7 23:57:38 UTC 2011
#16445: Don't allow imported IDs to be greater than 2^31
--------------------------+------------------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Import | Version: 3.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Changes (by daniloercoli):
* cc: daniloercoli (added)
Comment:
i don't know if it is related but we have similar issues with post IDs
using the XML-RPC endpoint.
The postID returned by metaWeblog.editPost, for example, is an int field
{{{
<methodResponse>
<params>
<param>
<value>
<struct>
<member><name>dateCreated</name><value><dateTime.iso8601>20110203T23:32:58</dateTime.iso8601></value></member>
<member><name>userid</name><value><string>1</string></value></member>
<member><name>postid</name><value><int>2746722655</int></value></member>
<member><name>description</name><value><string>.....
}}}
but in the case above the value exceeds the xml-rpc specs for the int type
(four-byte signed integer - http://www.xmlrpc.com/spec)
So, within the java app, we have issues because the XML-RPC parser tries
to retrieve the value using an Integer (It has a minimum value of
-2,147,483,648 and a maximum value of 2,147,483,647 (inclusive)).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16445#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list