[AWS] Configure AWS to use only S206 with Content-Range and no multipart/byteranges

David SAUVAGE - AdaLabs Ltd david.sauvage at adalabs.com
Thu Oct 6 15:06:08 CEST 2011


Hello,

I got an AWS based component that try to handle bazaar https+urllib
requests.

$ bzr -Dhttp https+urllib://server/project/trunk project

the command begin processing well, but on a given file of size 13.8 Kilo
Bytes, the bzr client stop and reports the following error:

bzr: ERROR: Invalid http response for
https://server/project/.bzr/repository/packs/02fe6dce53c2a675b88931114dd8674b.pack:
Missing the Content-Range header in a 206 range response


I read on http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, that
the response should include Either a Content-Range header field (section
14.16) indicating the range included with this response, or a
multipart/byteranges Content-Type including Content-Range fields for
each part.

The response urllib can't handle is the following :

28.562  < HTTP/1.1 206 Partial Content
28.562  < Date: Thu, 06 Oct 2011 12:51:43 GMT
< Server: Ada Web Server
< Content-Type: application/octet-stream
< Connection: keep-alive
< Last-Modified: Thu, 06 Oct 2011 09:39:24 GMT
< Accept-Ranges: bytes
< Content-Type: multipart/byteranges; boundary=aws_range_separator

It seems that urllib can't handle multipart/byteranges.
Would it be easy to configure AWS to use only Content-Range instead of
multipart/byteranges ?

Cheers,


-- 

David SAUVAGE

Software Agile Architect, Director
AdaLabs Ltd - Mauritius
http://adalabs.com
+230 428 18 32
skype sauvaged
BRN C10097052
VAT 27035043



More information about the AWS mailing list