Comment 2 for bug 294560

Revision history for this message
dmuir (dmuir) wrote :

I only mentioned pyCurl because the other report mentioned that it'll be used instead if available... or maybe I misread it...

As for changing the WebDAV setup... I can't since I don't own the config files. (Shared hosting) I can ask support to change it for me though. Wouldn't be surprised if this is the problem though, since the redirect shows a directory with a trailing slash. Including the trailing slash in the urlToRepo doesn't make a difference though. Ubuntu's "Connect to Server" fails in the same way though.

The username/password I'm entering is correct (am able to access it through Nautilus by entering dav://urlToRepo directly in address bar)

-Dauth give me:

0.012 encoding stdout as sys.stdout encoding 'UTF-8'
0.012 bzr arguments: [u'init-repo', u'-Dauth', u'http+webdav://bzr.tekika.com/edval']
0.013 looking for plugins in /home/dmuir/.bazaar/plugins
0.016 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.016 Plugin name __init__ already loaded
0.016 Plugin name __init__ already loaded
0.066 encoding stdout as sys.stdout encoding 'UTF-8'
0.663 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 849, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 795, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 495, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1412, in run
    to_transport.ensure_base()
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 341, in ensure_base
    self.mkdir('.')
  File "/home/dmuir/.bazaar/plugins/webdav/webdav.py", line 577, in mkdir
    response = self._perform(request)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/http/_urllib.py", line 78, in _perform
    response = self._opener.open(request)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 1332, in http_response
    code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 1349, in http_error_default
    % (code, msg))
InvalidHttpResponse: Invalid http response for http://bzr.tekika.com/edval: Unable to handle http code 401: Authorization Required

0.664 return code 3

my auth file is:
~/.bazaar/authentication.conf

[bzr.tekika.com]
scheme=http
host=bzr.tekika.com
user=<username>
password=<password>

Also, regarding Basic Authentication, my webhost doesn't give me an option there, so it's all I've got :-(
And the password is just temporary until I get things working.