https://bugzilla.novell.com/show_bug.cgi?id=466997
User poeml@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=466997#c14
--- Comment #14 from Peter Poeml 2009-01-23 05:11:24 MST ---
Maybe the authentication works different with the Provo bs, and osc gets a
"Unauthorized" after the PUT. It could be possible that osc retries the request
then, and the offset in the mmap'ed file is at the end then. The next attempt
to read() would give empty data.
This wouldn't be an explanation why it happens only with Python 2.6 though.
But with the OBS, when I try to reproduce this the mmap'ed region is indeed
sent only once:
-- PUT
https://api.opensuse.org/source/home:poeml/test6/fp50.linux.tar.gz?rev=uploa...
send: 'PUT /source/home:poeml/test6/fp50.linux.tar.gz?rev=upload
HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 10892501\r\nHost:
api.opensuse.org\r\nUser-Agent: osc/0.113\r\nConnection: close\r\nCookie:
IPCZQX***=***; ZNPCQ**=***\r\nContent-Type: application/octet-stream\r\n\r\n'
send:
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Opensuse-Apiversion: 0.1.2
header: X-Runtime: 12.70232
header: ETag: "78f504a806570b92666859f2ba06ccf0"
header: Cache-Control: private, max-age=0, must-revalidate
header: Date: Fri, 23 Jan 2009 12:04:05 GMT
header: Server: lighttpd/1.5.0
header: Content-Type: application/xml; charset=utf-8
header: Connection: close
header: Content-Length: 114
header: Via: 1.1 ICS_SERVER (iChain 2.3.410)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.