Error using pwclient update

Andreas Bießmann andreas.devel at googlemail.com
Mon Jul 2 02:13:39 EST 2012


Hi all,

I can't manage to update a patches state by 'pwclient update'.

---8<---
andreas at mbp % pwclient update -s "Changes Requested" 154242
send: "POST /xmlrpc/ HTTP/1.1\r\nHost:
patchwork.ozlabs.org\r\nAccept-Encoding: gzip\r\nAuthorization: Basic
<my base64 password>\r\nUser-Agent: xmlrpclib.py/1.0.1 (by
www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length:
153\r\n\r\n<?xml
version='1.0'?>\n<methodCall>\n<methodName>patch_get</methodName>\n<params>\n<param>\n<value><int>154242</int></value>\n</param>\n</params>\n</methodCall>\n"
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Sun, 01 Jul 2012 15:17:38 GMT
header: Server: Apache/2.2.22 (Debian)
header: Transfer-Encoding: chunked
header: Content-Type: text/html; charset=utf-8
body: "<?xml
version='1.0'?>\n<methodResponse>\n<params>\n<param>\n<value><struct>\n<member>\n<name>submitter_id</name>\n<value><int>11167</int></value>\n</member>\n<member>\n<name>date</name>\n<value><string>2012-04-21
21:24:44</string></value>\n</member>\n<member>\n<name>delegate_id</name>\n<value><int>6342</int></value>\n</member>\n<member>\n<name>id</name>\n<value><int>154242</int></value>\n</member>\n<member>\n<name>name</name>\n<value><string>[U-Boot,v5]
AT91SAM9*: Change kernel address in dataflash to match u-boot's
size</string></value>\n</member>\n<member>\n<name>commit_ref</name>\n<value><string></string></value>\n</member>\n<member>\n<name>msgid</name>\n<value><string><1335043484-14136-1-git-send-email-alexandre.belloni at piout.net></string></value>\n</member>\n<member>\n<name>filename</name>\n<value><string>U-Boot-v5-AT91SAM9-Change-kernel-address-in-dataflash-to-match-u-boot-s-size.patch</string></value>\n</member>\n<member>\n<name>project</name>\n<value><string>U-Boot</string></value>\n</member>\n<member>\n<name>state</name>\n<value><string"
body:
'>New</string></value>\n</member>\n<member>\n<name>delegate</name>\n<value><string>abiessmann</string></value>\n</member>\n<member>\n<name>submitter</name>\n<value><string>Alexandre
Belloni
<alexandre.belloni at piout.net></string></value>\n</member>\n<member>\n<name>state_id</name>\n<value><int>1</int></value>\n</member>\n<member>\n<name>project_id</name>\n<value><int>18</int></value>\n</member>\n</struct></value>\n</param>\n</params>\n</methodResponse>\n'
send: "POST /xmlrpc/ HTTP/1.1\r\nHost:
patchwork.ozlabs.org\r\nAccept-Encoding: gzip\r\nAuthorization: Basic
<my base64 coded passwd>\r\nUser-Agent: xmlrpclib.py/1.0.1 (by
www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length:
216\r\n\r\n<?xml
version='1.0'?>\n<methodCall>\n<methodName>state_list</methodName>\n<params>\n<param>\n<value><string>Changes
Requested</string></value>\n</param>\n<param>\n<value><int>0</int></value>\n</param>\n</params>\n</methodCall>\n"
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Sun, 01 Jul 2012 15:17:38 GMT
header: Server: Apache/2.2.22 (Debian)
header: Transfer-Encoding: chunked
header: Content-Type: text/html; charset=utf-8
body: "<?xml
version='1.0'?>\n<methodResponse>\n<params>\n<param>\n<value><array><data>\n<value><struct>\n<member>\n<name>id</name>\n<value><int>7</int></value>\n</member>\n<member>\n<name>name</name>\n<value><string>Changes
Requested</string></value>\n</member>\n</struct></value>\n</data></array></value>\n</param>\n</params>\n</methodResponse>\n"
send: "POST /xmlrpc/ HTTP/1.1\r\nHost:
patchwork.ozlabs.org\r\nAccept-Encoding: gzip\r\nAuthorization: Basic
<my base64 coded passwd>\r\nUser-Agent: xmlrpclib.py/1.0.1 (by
www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length:
270\r\n\r\n<?xml
version='1.0'?>\n<methodCall>\n<methodName>patch_set</methodName>\n<params>\n<param>\n<value><int>154242</int></value>\n</param>\n<param>\n<value><struct>\n<member>\n<name>state</name>\n<value><int>7</int></value>\n</member>\n</struct></value>\n</param>\n</params>\n</methodCall>\n"
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Sun, 01 Jul 2012 15:17:39 GMT
header: Server: Apache/2.2.22 (Debian)
header: Transfer-Encoding: chunked
header: Content-Type: text/html; charset=utf-8
body: "<?xml
version='1.0'?>\n<methodResponse>\n<fault>\n<value><struct>\n<member>\n<name>faultCode</name>\n<value><int>1</int></value>\n</member>\n<member>\n<name>faultString</name>\n<value><string><type
'exceptions.Exception'>:No authentication credentials
given</string></value>\n</member>\n</struct></value>\n</fault>\n</methodResponse>\n"
Error updating patch: <type 'exceptions.Exception'>:No authentication
credentials given
Patch not updated
--->8---

Double checked that username/password are correct and the resulting
base64 string matches '% echo -n <username>:<password> | base64'. Has
anyone a pointer whats going wrong?

Best regards

Andreas Bießmann


More information about the Patchwork mailing list