patchwork authentication bug or local server misconfiguration?
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Sat Jul 11 09:18:11 EST 2009
Hi,
I can retrieve patches just fine with pwclient, but updating the status
of any of them with pwclient fails because the server complains "No
authentication credentials given". That is obviously incorrect as can be
seen from the trace below.
POST /xmlrpc/ HTTP/1.0
Host: patchwork.coreboot.org
Authorization: Basic String_was_stripped_away_for_security
User-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)
Content-Type: text/xml
Content-Length: 346
<?xml version='1.0'?>
<methodCall>
<methodName>patch_set</methodName>
<params>
<param>
<value><int>16</int></value>
</param>
<param>
<value><struct>
<member>
<name>state</name>
<value><int>3</int></value>
</member>
<member>
<name>commit_ref</name>
<value><string>r645</string></value>
</member>
</struct></value>
</param>
</params>
</methodCall>
HTTP/1.1 200 OK
Date: Fri, 10 Jul 2009 22:35:43 GMT
Server: Apache/2.2.10 (Linux/SUSE)
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=utf-8
<?xml version='1.0'?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>1</int></value>
</member>
<member>
<name>faultString</name>
<value><string><type 'exceptions.Exception'>:No authentication
credentials given</string></value>
</member>
</struct></value>
</fault>
</methodResponse>
pwclient is latest git, the server is not too far behind either.
~/.pwclientrc has the correct username and password, but the exact same
response is sent if I fill in a nonexisting username and wrong password.
Updating patch status via the web interface works fine.
So far, I either suspect a server misconfiguration or a patchwork bug.
I'll try to talk with our admin and find out.
If anybody has seen this before, I'd appreciate hints.
Regards,
Carl-Daniel
More information about the Patchwork
mailing list