Access control
Jeffrey Cunningham
jcunningham at medea.sea.boeing.com
Wed Feb 28 16:48:41 GMT 2007
Vincent Ladeuil wrote:
>
> First, I was suspicious of the error message because in your
> previous mail you had cut the host, now I feel better (just a
> little ;).
>
> I guess your apache server is somehow misconfigured and refuses
> to serve some files.
>
> My suspect is '.bzr' but the '~' translation may also come into
> play.
>
> Jeff> [jeff:password stands for the correct username:password, of
> Jeff> course, which I verified work in through a browser]
>
> Thanks for that verification. From your various tests I suppose
> https is not an option for you ?
I could set it up. But how would it make anything different? Users would
still have to authenticate through some mechanizm whether or not the
stream was processed through SSL or not. My understanding is that using
SSL would only encrypt things while in the pipe.
>
> Also, are you able to browse ~jcunningham/docs/.bzr/branch-format
> itself ? What is its content ?
Yes. Here's what comes up in Mozilla:
Bazaar-NG meta directory, format 1
> Not yet, but if you could provide your $HOME/.bzr.log, anonymized
> as you see fit but I think it's ok as is.
>
return code 3
bzr arguments: [u'branch',
u'http+pycurl://jeff:password@medea.sea.boeing.com/~jcunningham/docs']
looking for plugins in /home/jcunningham/lib/python/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
looking for plugins in /home/jcunningham/.bazaar/plugins
encoding stdout as sys.stdout encoding 'ANSI_X3.4-1968'
using pycurl libcurl/7.15.1 GnuTLS/1.4.4 zlib/1.2.3 libidn/0.5.15
Traceback (most recent call last):
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 650, in
run_bzr_catch_errors
return run_bzr(argv)
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 612, in
run_bzr
ret = run(*run_argv)
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 304, in
run_argv_aliases
return self.run(**all_cmd_args)
File "/home/jcunningham/lib/python/bzrlib/builtins.py", line 712, in run
br_from = Branch.open(from_location)
File "/home/jcunningham/lib/python/bzrlib/branch.py", line 119, in open
control = bzrdir.BzrDir.open(base, _unsupported)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 500, in open
return BzrDir.open_from_transport(t, _unsupported=_unsupported)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 509, in
open_from_transport
format = BzrDirFormat.find_format(transport)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 1059, in
find_format
return format.probe_transport(transport)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 1069, in
probe_transport
format_string = transport.get(".bzr/branch-format").read()
File
"/home/jcunningham/lib/python/bzrlib/transport/http/__init__.py", line
226, in get
code, response_file = self._get(relpath, None)
File "/home/jcunningham/lib/python/bzrlib/transport/http/_pycurl.py",
line 124, in _get
return self._get_full(relpath)
File "/home/jcunningham/lib/python/bzrlib/transport/http/_pycurl.py",
line 167, in _get_full
self._raise_curl_http_error(
File "/home/jcunningham/lib/python/bzrlib/transport/http/_pycurl.py",
line 223, in _raise_curl_http_error
raise errors.InvalidHttpResponse(
InvalidHttpResponse: Invalid http response for
http://jeff:password@medea.sea.boeing.com/~jcunningham/docs/.bzr/branch-format:
Unable to handle http code 400: expected 200 or 404 for full response.
return code 3
bzr arguments: [u'branch',
u'http+urllib://jeff:password@medea.sea.boeing.com/~jcunningham/docs']
looking for plugins in /home/jcunningham/lib/python/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
looking for plugins in /home/jcunningham/.bazaar/plugins
encoding stdout as sys.stdout encoding 'ANSI_X3.4-1968'
GET: [http://medea.sea.boeing.com/~jcunningham/docs/.bzr/branch-format]
Traceback (most recent call last):
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 650, in
run_bzr_catch_errors
return run_bzr(argv)
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 612, in
run_bzr
ret = run(*run_argv)
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 304, in
run_argv_aliases
return self.run(**all_cmd_args)
File "/home/jcunningham/lib/python/bzrlib/builtins.py", line 712, in run
br_from = Branch.open(from_location)
File "/home/jcunningham/lib/python/bzrlib/branch.py", line 119, in open
control = bzrdir.BzrDir.open(base, _unsupported)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 500, in open
return BzrDir.open_from_transport(t, _unsupported=_unsupported)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 509, in
open_from_transport
format = BzrDirFormat.find_format(transport)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 1059, in
find_format
return format.probe_transport(transport)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 1069, in
probe_transport
format_string = transport.get(".bzr/branch-format").read()
File
"/home/jcunningham/lib/python/bzrlib/transport/http/__init__.py", line
226, in get
code, response_file = self._get(relpath, None)
File "/home/jcunningham/lib/python/bzrlib/transport/http/_urllib.py",
line 130, in _get
response = self._perform(request)
File "/home/jcunningham/lib/python/bzrlib/transport/http/_urllib.py",
line 102, in _perform
response = self._opener.open(request)
File "/usr/lib/python2.4/urllib2.py", line 364, in open
response = meth(req, response)
File
"/home/jcunningham/lib/python/bzrlib/transport/http/_urllib2_wrappers.py",
line 752, in http_response
code, msg, hdrs)
File "/usr/lib/python2.4/urllib2.py", line 402, in error
return self._call_chain(*args)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File
"/home/jcunningham/lib/python/bzrlib/transport/http/_urllib2_wrappers.py",
line 777, in http_error_default
'Unable to handle http code %d: %s'
InvalidHttpResponse: Invalid http response for
http://medea.sea.boeing.com/~jcunningham/docs/.bzr/branch-format: Unable
to handle http code 401: Authorization Required
return code 3
bzr arguments: [u'branch',
u'http://jeff:password@medea.sea.boeing.com/~jcunningham/docs']
looking for plugins in /home/jcunningham/lib/python/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
looking for plugins in /home/jcunningham/.bazaar/plugins
encoding stdout as sys.stdout encoding 'ANSI_X3.4-1968'
using pycurl libcurl/7.15.1 GnuTLS/1.4.4 zlib/1.2.3 libidn/0.5.15
Traceback (most recent call last):
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 650, in
run_bzr_catch_errors
return run_bzr(argv)
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 612, in
run_bzr
ret = run(*run_argv)
File "/home/jcunningham/lib/python/bzrlib/commands.py", line 304, in
run_argv_aliases
return self.run(**all_cmd_args)
File "/home/jcunningham/lib/python/bzrlib/builtins.py", line 712, in run
br_from = Branch.open(from_location)
File "/home/jcunningham/lib/python/bzrlib/branch.py", line 119, in open
control = bzrdir.BzrDir.open(base, _unsupported)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 500, in open
return BzrDir.open_from_transport(t, _unsupported=_unsupported)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 509, in
open_from_transport
format = BzrDirFormat.find_format(transport)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 1059, in
find_format
return format.probe_transport(transport)
File "/home/jcunningham/lib/python/bzrlib/bzrdir.py", line 1069, in
probe_transport
format_string = transport.get(".bzr/branch-format").read()
File
"/home/jcunningham/lib/python/bzrlib/transport/http/__init__.py", line
226, in get
code, response_file = self._get(relpath, None)
File "/home/jcunningham/lib/python/bzrlib/transport/http/_pycurl.py",
line 124, in _get
return self._get_full(relpath)
File "/home/jcunningham/lib/python/bzrlib/transport/http/_pycurl.py",
line 167, in _get_full
self._raise_curl_http_error(
File "/home/jcunningham/lib/python/bzrlib/transport/http/_pycurl.py",
line 223, in _raise_curl_http_error
raise errors.InvalidHttpResponse(
InvalidHttpResponse: Invalid http response for
http://jeff:password@medea.sea.boeing.com/~jcunningham/docs/.bzr/branch-format:
Unable to handle http code 400: expected 200 or 404 for full response.
return code 3
Thanks, Vincent.
--Jeff
More information about the bazaar
mailing list