Skip Menu |

This queue is for tickets about the WordPress-XMLRPC CPAN distribution.

Report information
The Basics
Id: 68807
Status: new
Priority: 0/
Queue: WordPress-XMLRPC

People
Owner: Nobody in particular
Requestors: jmg [...] cs.columbia.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: uploadFile sub is missing username and password
Date: Tue, 14 Jun 2011 01:53:43 -0400
To: bug-WordPress-XMLRPC [...] rt.cpan.org
From: John Gallagher <jmg [...] cs.columbia.edu>
Unlike other subs, uploadFile is missing the username and password arguments required by the server (resulting in 403). Here is a fix: --- XMLRPC.pm 2011-06-14 01:49:16.000000000 -0400 +++ XMLRPC.pm.patched 2011-06-14 01:51:18.000000000 -0400 @@ -417,6 +417,8 @@ my $self = shift; my $blog_id = $self->blog_id; my $data = shift; + my $user_login = $self->username; + my $user_pass = $self->password; defined $data or confess('missing data hash ref arg'); ref $data eq 'HASH' or croak('arg is not hash ref'); @@ -425,6 +427,8 @@ my $call = $self->server->call( 'wp.uploadFile', $blog_id, + $user_login, + $user_pass, $data, );