[MERGE] squid proxies use boundary="foo"

John Arbash Meinel john at arbash-meinel.com
Thu Aug 31 22:40:34 BST 2006


https://launchpad.net/products/bzr/+bug/57723

It seems that when going through a squid proxy, squid rewrites the
multipart boundary sections to something like:

Content-Type: multipart/byteranges;
boundary="squid/2.6.STABLE1:2F333CDABEAF766ABD9130F8A21BA7E1"

^^ this should all be on one line

But the important part, is that it is surrounding the real boundary with
double quotes "".

I didn't see this explicitly allowed by the BNF given here:
http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html

But some of the examples do indeed use double quotes (not all of them do).

I was able to recreate the problem by just installing squid, and then using:
http_proxy=HTTP_PROXY='http://localhost:3128' \
	bzr get http://bazaar-vcs.org/bzr/bzr.dev

It takes a little while, though, because it has to download all of the
data before it tries to parse it, and fails to find the indexes.

This adds another explicit response text to the test suite, and makes
sure that we handle the "" properly.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: boundary-quotes-57723.patch
Type: text/x-patch
Size: 6215 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060831/f5d08736/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060831/f5d08736/attachment.pgp 


More information about the bazaar mailing list