https settings in authentication.conf cause failure

Bug #275953 reported by thrope
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij

Bug Description

I would like to use bzr-svn with an Google code svn repository using authenticated https.

Things work as expected without authentication.conf, with the incovenience of having to type the password several times for each operation.

However, when I add the following settings to authentication.conf to automate the procedure it become impossible to connect and perform any opeartion.
 Having
[project_name]
scheme=https
host=project_name.googlecode.com

doesn't have any effect - but as soon as a user= or password= section is added to authenticate.conf, any operation fails (eg bzr update, a fresh checkout). I am prompted and enter the password but after the following message appears in the log:
0.083 encoding stdout as sys.stdout encoding 'US-ASCII'
0.084 bzr arguments: [u'-Dauth', u'co', u'svn+https://<email address hidden>/svn/trunk', u'trunk']
0.085 looking for plugins in /Users/robince/.bazaar/plugins
0.085 looking for plugins in /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/plugins
0.085 Plugin name __init__ already loaded
0.085 Plugin name __init__ already loaded
0.245 bzr-svn: using Subversion 1.5.2 ()
0.314 encoding stdout as sys.stdout encoding 'US-ASCII'
[21920] 2008-09-29 17:13:42.523 WARNING: The svn+ syntax is deprecated, use https://<email address hidden>/svn/trunk instead.
0.328 opening SVN RA connection to 'https://<email address hidden>/svn/trunk'
0.763 Obtaining username and password for SVN connection
0.766 Using authentication section: 'pyentropy'
0.766 Using authentication section: 'pyentropy'
0.777 Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/builtins.py", line 937, in run
    branch_location)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 878, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 755, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1561, in get_transport
    transport, last_err = _try_transport_factories(base, factory_list)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1584, in _try_transport_factories
    return factory.get_obj()(base), None
  File "/opt/local/lib/python2.5/site-packages/bzrlib/plugins/svn/errors.py", line 161, in convert
    raise convert_error(e)
PermissionDenied: Permission denied: ".": OPTIONS of 'https://<email address hidden>/svn/trunk': authorization failed (https://pyentropy.googlecode.com)

0.778 return code 3

jm-g26b101:~ robince$ bzr --version
Bazaar (bzr) 1.6.1
  Python interpreter: /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python 2.5.2
  Python standard library: /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
  bzrlib: /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /Users/robince/.bazaar
  Bazaar log file: /Users/robince/.bzr.log

jm-g26b101:~ robince$ svn --version
svn, version 1.5.2 (r32768)
   compiled Sep 25 2008, 14:45:23

Copyright (C) 2000-2008 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

bzr-svn @0.4.12 devel/bzr-svn

Revision history for this message
thrope (x-launchpad-robince-ftml-net) wrote :

Having upgraded to bazaar 1.7 and bzr-svn 0.4.13 the problem seems to have gone away.

With this set up it something requests access to the log in from the Mac system keychain. The authentication.conf file has no effect.

So it's possible there is still a bug with authentication.conf...

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

reproduced and fixed

Changed in bzr-svn:
assignee: nobody → jelmer
milestone: none → 0.5.0
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.