[wp-trac] [WordPress Trac] #32063: XML-RPC API error 403 on method getOptions with correct password

WordPress Trac noreply at wordpress.org
Wed Apr 22 15:24:42 UTC 2015


#32063: XML-RPC API error 403 on method getOptions with correct password
--------------------------+-----------------------------
 Reporter:  reprotector   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  4.1.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I'm having an weird error on method getOptions from XML-RPC API.

 My password has a single quote ('), ex: abc'cba

 Method getPosts works well, returning my blog posts.
 {{{curl --header "Accept: text/xml;" --data "<?xml
 version="1.0"?><methodCall><methodName>wp.getPosts</methodName><params><param><value><string></string></value></param><param><value><string>MYUSERNAME</string></value></param><param><value><string>abc'cba</string></value></param></params></methodCall>"
 http://www.MYBLOGURL.com/xmlrpc.php}}}

 Method getOptions doesnt work at all, returning "Incorrect username or
 password."
 {{{curl --header "Accept: text/xml;" --data "<?xml
 version="1.0"?><methodCall><methodName>wp.getOptions</methodName><params><param><value><string></string></value></param><param><value><string>MYUSERNAME</string></value></param><param><value><string>abc'cba</string></value></param></params></methodCall>"
 http://www.MYBLOGURL.com/xmlrpc.php}}}

 If I remove the single quote from password, both methods works well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32063>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list