Tiny problem with knits and http (double-encoding?)
John Arbash Meinel
john at arbash-meinel.com
Sat Apr 29 16:16:17 BST 2006
Lalo Martins wrote:
> On lalo.revisioncontrol.net:
...
> lalo:/var/lib/bzr/vos> ls .bzr/repository/knits/9b/%*
> %4dakefile.am-20060328145850-abc9b80cb43dfb63.kndx
> %4dakefile.am-20060328145850-abc9b80cb43dfb63.knit
>
> On my local machine:
> lalo:~SRC/vos> bzr get http://lalo.revisioncontrol.net/bzr/vos vos-knitted
> bzr: ERROR: No such file: 'http://lalo.revisioncontrol.net/bzr/vos/.bzr/repository/knits/9b/%254dakefile.am-20060328145850-abc9b80cb43dfb63.kndx'
> zsh: exit 3 bzr get http://lalo.revisioncontrol.net/bzr/vos vos-knitted
>
> Both machines running a freshly-updated bzr.dev.
>
> Does anyone see similar behaviour?
>
> best,
Well it looks like it is properly escaping things. When I go to that
directory on your server, I find the files there, with the index showing:
%4dakefile.am-200603...
%4dakefile.am-200603...
And if I click on the link, it tries to take me to:
http://lalo.revisioncontrol.net/bzr/vos/.bzr/repository/knits/9b/%254dakefile.am-20060328145850-abc9b80cb43dfb63.kndx
However, your server seems to be double unescaping this to translate:
%254d => M (%25=>%, and %4d=> M)
At least the error message is:
The requested URL
/bzr/vos/.bzr/repository/knits/9b/Makefile.am-20060328145850-abc9b80cb43dfb63.kndx
was not found on this server.
^^^^^^ See it translated it back to "M"
You seem to be running Apache 1.3.33, while I am running apache 2.0.54
But on my machine, if you go to http://john.arbash-meinel.com/pub/
You can see the file:
%4dakefile.txt
And if you click on the link, it takes you to:
http://john.arbash-meinel.com/pub/%254dakefile.txt
Notice that it did indeed escape the %4d => %254d, and that the file
properly resolves.
It seems to be a problem with your web-server not handling the %25
escaping properly.
I was able to find this bug report:
http://issues.apache.org/bugzilla/show_bug.cgi?id=38791
So it looks like a know bug that was fixed 2006-04-16.
John
=:->
-------------- 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/20060429/9e27599b/attachment.pgp
More information about the bazaar
mailing list