[wp-trac] [WordPress Trac] #17541: Blogger-XMLPRC API does not work with Multisite/SSL/DMZ combination

WordPress Trac wp-trac at lists.automattic.com
Mon May 23 07:26:30 UTC 2011


#17541: Blogger-XMLPRC API does not work with Multisite/SSL/DMZ combination
--------------------------+-----------------------------
 Reporter:  michael_k     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I have the following setup:
 My WordPress Blogs (multisite) are set up behind a firewall that exposes
 the public address via SSL. Inside my DMZ I'm only using HTTP, so that's
 what WordPress sees. When I now try to access the blogger.getUsersBlogs
 XMLPRC-API, I get an empty result back.

 I analyzed the WordPress source code and found out that the
 blogger.getUsersBlogs method in the file wp-includes\class-wp-xmlrpc-
 server.php uses another XMLRPC call to the wp.getUsersBlogs method in case
 of the multisite. I further checked and found out that this appears to be
 the only case in which WordPress executes a remote call itself to sevice
 the request. I then replaced the logic in _multisite_getUsersBlogs with
 the multisite part from wp_getUsersBlogs and it worked.

 I aso found an issue that might be related:
 http://core.trac.wordpress.org/ticket/16402
 But since the source code in the trunk still uses the regular IXR_Client,
 I'm not sure if this would fix the issue.

 I attached my fix as a patch, but it's not refactored to remove code
 duplication since I don't have a dev-environment set up for WordPress.

 Michael

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


More information about the wp-trac mailing list