Sharing repository through a read-only web server

Ben Gerdemann gname at ibeni.net
Mon Nov 12 16:30:45 GMT 2007


Adeodato Simó <dato <at> net.com.org.es> writes:

> 
> * Ben Gerdemann [Mon, 12 Nov 2007 16:14:46 +0000]:
> 
> Independently of whether they returrn a pretty html or not on errors,
> web servers always include a return code, which is what Bazaar looks at.
> For files that don't exist, it should be returning 404, not 403. If
> you're in a Linux system, you can check what is returning with:
> 
>   % HEAD http://myserver/foo/bar
> 
> or
> 
>   % wget -O /dev/null http://myserver/foo/bar
> 
> The first or last line of output, respectively, contain the code.

Yep, that's exactly the problem. It's returning a 403 instead of 404 even though
the file does not exist. Since I can't reconfigure this server am I out of luck?
If suppose that if Bazaar considered the error code 403 as a missing file this
would probably lead to other problems later... Can I setup the repository in
some way that it doesn't have to scan for the repository/format file? Or somehow
force it to look in a certain directory?

Thanks for all your help BTW!

Cheers,
Ben




More information about the bazaar mailing list