repeatedly being asked for username and password

Bug #439010 reported by Eric Berry
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Invalid
Undecided
Unassigned
bzr-keychain
Confirmed
Undecided
Unassigned

Bug Description

I updated to BZR 2.0 version this morning, and updated the bzr-svn plugin as well:
[540] bzr --version
Bazaar (bzr) 2.0.0
  Python interpreter: /usr/bin/python2.6 2.6.1
  Python standard library: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
  Platform: Darwin-10.0.0-i386-64bit
  bzrlib: /Library/Python/2.6/site-packages/bzrlib
  Bazaar configuration: /Users/eberry/.bazaar
  Bazaar log file: /Users/eberry/.bzr.log

[541] bzr plugins
....
svn 1.0.0
    Support for Subversion branches

My SVN version:
[542] svn --version
svn, version 1.6.5 (r38866)
   compiled Aug 24 2009, 09:51:01

Copyright (C) 2000-2009 CollabNet.

When I try to push to a svn repository over https I always have to enter my username and password. I don't remember having to do this before.

If I use the SVN command everything works fine so I know svn is caching my credentials.

It is not happening on each revision as in bug number: #331073. It only asks once each push.

Any help would be greatly appreciated.

Thanks,
Eric

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

What platform are you on?

What version of subvertpy are you using?

If you use svn, do you also do write operations, such as commits ?

Revision history for this message
Eric Berry (elberry) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

Hi Jelmer,
   Thank you for the quick response.

On Tue, Sep 29, 2009 at 2:59 PM, Jelmer Vernooij <email address hidden> wrote:

> What platform are you on?
>

Mac OS X 10.6.1

>
> What version of subvertpy are you using?
>

I'm not sure. How can I find this out? I use the SVN binaries, and I assume
they install any dependencies I might need.

>
> If you use svn, do you also do write operations, such as commits ?
>

Yes. I performed some commits through the svn command line earlier without
being prompted for the username and password.

>
> --
> repeatedly being asked for username and password
> https://bugs.launchpad.net/bugs/439010
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Subversion branch support for Bazaar: New
>
> Bug description:
> I updated to BZR 2.0 version this morning, and updated the bzr-svn plugin
> as well:
> [540] bzr --version
> Bazaar (bzr) 2.0.0
> Python interpreter: /usr/bin/python2.6 2.6.1
> Python standard library:
> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> Platform: Darwin-10.0.0-i386-64bit
> bzrlib: /Library/Python/2.6/site-packages/bzrlib
> Bazaar configuration: /Users/eberry/.bazaar
> Bazaar log file: /Users/eberry/.bzr.log
>
> [541] bzr plugins
> ....
> svn 1.0.0
> Support for Subversion branches
>
> My SVN version:
> [542] svn --version
> svn, version 1.6.5 (r38866)
> compiled Aug 24 2009, 09:51:01
>
> Copyright (C) 2000-2009 CollabNet.
>
>
> When I try to push to a svn repository over https I always have to enter my
> username and password. I don't remember having to do this before.
>
> If I use the SVN command everything works fine so I know svn is caching my
> credentials.
>
> It is not happening on each revision as in bug number: #331073. It only
> asks once each push.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Eric
>

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

Hi Eric,

On Tue, 2009-09-29 at 22:10 +0000, Eric Berry wrote:
> > What version of subvertpy are you using:
> I'm not sure. How can I find this out? I use the SVN binaries, and I assume
> they install any dependencies I might need
subvertpy is an independent package which uses the svn libraries and is
used by bzr-svn. Not being familiar with Mac OS X I'm not sure what the
best way is to find out what version you have. How did you install
bzr-svn?

Can you check if your version of subvertpy has keychain support? In a
python shell, try:

from subvertpy._ra import get_keychain_simple_provider

Jelmer

Revision history for this message
Eric Berry (elberry) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

On Tue, Sep 29, 2009 at 3:30 PM, Jelmer Vernooij <email address hidden> wrote:

> Hi Eric,
>
> On Tue, 2009-09-29 at 22:10 +0000, Eric Berry wrote:
> > > What version of subvertpy are you using:
> > I'm not sure. How can I find this out? I use the SVN binaries, and I
> assume
> > they install any dependencies I might need
> subvertpy is an independent package which uses the svn libraries and is
> used by bzr-svn. Not being familiar with Mac OS X I'm not sure what the
> best way is to find out what version you have. How did you install
> bzr-svn?
>
>
I installed it from using the tgz file found on the home page:
https://launchpad.net/bzr-svn

> Can you check if your version of subvertpy has keychain support? In a
> python shell, try:
>
> from subvertpy._ra import get_keychain_simple_provider
>
>
Results in:
[512] python
Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from subvertpy._ra import get_keychain_simple_provider
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "subvertpy/__init__.py", line 111, in <module>
    raise ImportError("Unable to load subvertpy extensions: %s", e.message)
ImportError: ('Unable to load subvertpy extensions: %s', 'No module named
client')

I assumed that means it's not installed.

I tried downloading it from here:
http://mac.softpedia.com/get/Developer-Tools/subvertpy.shtml

And running the setup script but ran into this error:
building 'subvertpy.client' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3 -DDARWIN
-DSVN_KEYCHAIN_PROVIDER_AVAILABLE=1 -I/usr/include/apr-1
-I/usr/include/subversion-1 -Isubvertpy
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c
subvertpy/client.c -o build/temp.macosx-10.3-i386-2.5/subvertpy/client.o
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of:
/var/folders/0A/0Avyo49fGJezlC4D-pJz1k+++TI/-Tmp-//ccnr8Uu7.out
error: command 'gcc' failed with exit status 1

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

On Tue, 2009-09-29 at 23:05 +0000, Eric Berry wrote:
> On Tue, Sep 29, 2009 at 3:30 PM, Jelmer Vernooij <email address hidden>
> wrote:
>
> > Hi Eric,
> >
> > On Tue, 2009-09-29 at 22:10 +0000, Eric Berry wrote:
> > > > What version of subvertpy are you using:
> > > I'm not sure. How can I find this out? I use the SVN binaries, and I
> > assume
> > > they install any dependencies I might need
> > subvertpy is an independent package which uses the svn libraries and is
> > used by bzr-svn. Not being familiar with Mac OS X I'm not sure what the
> > best way is to find out what version you have. How did you install
> > bzr-svn?
> >
> >
> I installed it from using the tgz file found on the home page:
> https://launchpad.net/bzr-svn
In that case you would already have subvertpy installed some other way. bzr-svn depends on subvertpy and will error out if it is not installed.

>
> > Can you check if your version of subvertpy has keychain support? In a
> > python shell, try:
> >
> > from subvertpy._ra import get_keychain_simple_provider
> >
> >
> Results in:
> [512] python
> Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27)
> [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from subvertpy._ra import get_keychain_simple_provider
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "subvertpy/__init__.py", line 111, in <module>
> raise ImportError("Unable to load subvertpy extensions: %s", e.message)
> ImportError: ('Unable to load subvertpy extensions: %s', 'No module named
> client')
>
> I assumed that means it's not installed.
It seems like it is not installed completely. Are you invoking the same
python interpreter that's being used for bzr?

Jelmer

Revision history for this message
Eric Berry (elberry) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

>>In that case you would already have subvertpy installed some other way.
bzr-svn depends on subvertpy and will error out if it is not installed.

Ah Ok. It still works, just requires the username and password.

>
> > I assumed that means it's not installed.
> It seems like it is not installed completely. Are you invoking the same
> python interpreter that's being used for bzr?
>
>
You were correct.

When I run python --version from the command line I get:
[502] python --version
Python 2.5.4

But BZR reports that I'm using python 2.6.1:
[501] bzr --version
Bazaar (bzr) 2.0.0
  Python interpreter: /usr/bin/python2.6 2.6.1
  Python standard library:
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6

I've fixed the issue and installed subvertpy using the setup script.

However, I still have the same issue, in that it asks for the username and
password whenever I push.

Thanks,
Eric

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

On Tue, 2009-09-29 at 23:38 +0000, Eric Berry wrote:
> >>In that case you would already have subvertpy installed some other way.
> bzr-svn depends on subvertpy and will error out if it is not installed.
>
> Ah Ok. It still works, just requires the username and password.
>
>
> >
> > > I assumed that means it's not installed.
> > It seems like it is not installed completely. Are you invoking the same
> > python interpreter that's being used for bzr?
> >
> >
> You were correct.
>
> When I run python --version from the command line I get:
> [502] python --version
> Python 2.5.4
>
> But BZR reports that I'm using python 2.6.1:
> [501] bzr --version
> Bazaar (bzr) 2.0.0
> Python interpreter: /usr/bin/python2.6 2.6.1
> Python standard library:
> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
>
> I've fixed the issue and installed subvertpy using the setup script.
>
> However, I still have the same issue, in that it asks for the username and
> password whenever I push.
Do you have the keychain function? What version of subvertpy?

Revision history for this message
Eric Berry (elberry) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

> > password whenever I push.
> Do you have the keychain function? What version of subvertpy?
>
>
If I use the command you sent earlier, I don't get an error, and the version
of subvertpy I downloaded was 0.6.8. Is this the correct version?

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

On Wed, 2009-09-30 at 00:03 +0000, Eric Berry wrote:
> > > password whenever I push.
> > Do you have the keychain function? What version of subvertpy?
> >
> >
> If I use the command you sent earlier, I don't get an error, and the version
> of subvertpy I downloaded was 0.6.8. Is this the correct version?
0.6.8 should be sufficient.

And are you sure that's the version that's being used by bzr-svn ?

Did you upgrade just bzr/bzr-svn this morning or subversion and/or
subvertpy as well?

Cheers,

Jelmer

Revision history for this message
Eric Berry (elberry) wrote : Re: [Bug 439010] [NEW] repeatedly being asked for username and password

Hi Jelmer,

Thanks for all the help.

I've upgraded all 3 at this point.

This morning I updated bzr and bzr-svn.

Then upgraded subvertpy during the course of this thread.

Eric

On Tue, Sep 29, 2009 at 5:21 PM, Jelmer Vernooij <email address hidden> wrote:

> On Wed, 2009-09-30 at 00:03 +0000, Eric Berry wrote:
> > > > password whenever I push.
> > > Do you have the keychain function? What version of subvertpy?
> > >
> > >
> > If I use the command you sent earlier, I don't get an error, and the
> version
> > of subvertpy I downloaded was 0.6.8. Is this the correct version?
> 0.6.8 should be sufficient.
>
> And are you sure that's the version that's being used by bzr-svn ?
>
> Did you upgrade just bzr/bzr-svn this morning or subversion and/or
> subvertpy as well?
>
> Cheers,
>
> Jelmer
>
> --
> repeatedly being asked for username and password
> https://bugs.launchpad.net/bugs/439010
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Subversion branch support for Bazaar: New
>
> Bug description:
> I updated to BZR 2.0 version this morning, and updated the bzr-svn plugin
> as well:
> [540] bzr --version
> Bazaar (bzr) 2.0.0
> Python interpreter: /usr/bin/python2.6 2.6.1
> Python standard library:
> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> Platform: Darwin-10.0.0-i386-64bit
> bzrlib: /Library/Python/2.6/site-packages/bzrlib
> Bazaar configuration: /Users/eberry/.bazaar
> Bazaar log file: /Users/eberry/.bzr.log
>
> [541] bzr plugins
> ....
> svn 1.0.0
> Support for Subversion branches
>
> My SVN version:
> [542] svn --version
> svn, version 1.6.5 (r38866)
> compiled Aug 24 2009, 09:51:01
>
> Copyright (C) 2000-2009 CollabNet.
>
>
> When I try to push to a svn repository over https I always have to enter my
> username and password. I don't remember having to do this before.
>
> If I use the SVN command everything works fine so I know svn is caching my
> credentials.
>
> It is not happening on each revision as in bug number: #331073. It only
> asks once each push.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Eric
>

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

Revision history for this message
Eric Berry (elberry) wrote :

Hi Jelmer,
   I'm now seeing issues logging in just using SVN. It doesn't seem to
happen on all repositories, but it's exactly the same thing I'm seeing using
bzr-svn.

I'm thinking this is not a bzr-svn issue now.

Please close it out.

Thanks for all the help.
Eric

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

Revision history for this message
Eric Berry (elberry) wrote :

Hi Jelmer,
    After re-installing the SVN 1.6.5 binary, my issues with credentials was
resolved through SVN. However, the issue with BZR still persists.

One thing I noticed was that in the KeyChain tool SVN is listed as always
being allows to access it. However, BZR is not there.

Should it be?

Thanks,
Eric

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

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

Do you have the bzr keychain plugin loaded ?

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

Afaik it's included with the bzr installer for Mac OS X

Revision history for this message
Eric Berry (elberry) wrote : Re: [Bug 439010] Re: repeatedly being asked for username and password

Yes. If I do bzr plugins it appears. Version 0.1.0.

keychain 0.1.0
    Use the Mac OS X keychain as a credential store for authentication.conf.

On Fri, Oct 9, 2009 at 6:35 AM, Jelmer Vernooij <email address hidden> wrote:

> Afaik it's included with the bzr installer for Mac OS X
>
> --
> repeatedly being asked for username and password
> https://bugs.launchpad.net/bugs/439010
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Subversion branch support for Bazaar: New
>
> Bug description:
> I updated to BZR 2.0 version this morning, and updated the bzr-svn plugin
> as well:
> [540] bzr --version
> Bazaar (bzr) 2.0.0
> Python interpreter: /usr/bin/python2.6 2.6.1
> Python standard library:
> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> Platform: Darwin-10.0.0-i386-64bit
> bzrlib: /Library/Python/2.6/site-packages/bzrlib
> Bazaar configuration: /Users/eberry/.bazaar
> Bazaar log file: /Users/eberry/.bzr.log
>
> [541] bzr plugins
> ....
> svn 1.0.0
> Support for Subversion branches
>
> My SVN version:
> [542] svn --version
> svn, version 1.6.5 (r38866)
> compiled Aug 24 2009, 09:51:01
>
> Copyright (C) 2000-2009 CollabNet.
>
>
> When I try to push to a svn repository over https I always have to enter my
> username and password. I don't remember having to do this before.
>
> If I use the SVN command everything works fine so I know svn is caching my
> credentials.
>
> It is not happening on each revision as in bug number: #331073. It only
> asks once each push.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Eric
>

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

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

Where do you have to enter your password exactly? Do you get a keychain popup or something like that?

Revision history for this message
Eric Berry (elberry) wrote :

I enter it in the terminal. I never get a keychain popup when using bzr.

On Sun, Nov 1, 2009 at 6:48 AM, Jelmer Vernooij <email address hidden> wrote:

> Where do you have to enter your password exactly? Do you get a keychain
> popup or something like that?
>
> --
> repeatedly being asked for username and password
> https://bugs.launchpad.net/bugs/439010
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Subversion branch support for Bazaar: New
>
> Bug description:
> I updated to BZR 2.0 version this morning, and updated the bzr-svn plugin
> as well:
> [540] bzr --version
> Bazaar (bzr) 2.0.0
> Python interpreter: /usr/bin/python2.6 2.6.1
> Python standard library:
> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> Platform: Darwin-10.0.0-i386-64bit
> bzrlib: /Library/Python/2.6/site-packages/bzrlib
> Bazaar configuration: /Users/eberry/.bazaar
> Bazaar log file: /Users/eberry/.bzr.log
>
> [541] bzr plugins
> ....
> svn 1.0.0
> Support for Subversion branches
>
> My SVN version:
> [542] svn --version
> svn, version 1.6.5 (r38866)
> compiled Aug 24 2009, 09:51:01
>
> Copyright (C) 2000-2009 CollabNet.
>
>
> When I try to push to a svn repository over https I always have to enter my
> username and password. I don't remember having to do this before.
>
> If I use the SVN command everything works fine so I know svn is caching my
> credentials.
>
> It is not happening on each revision as in bug number: #331073. It only
> asks once each push.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Eric
>

--
Learn from the past. Live in the present. Plan for the future.
11101000
http://www.townsfolkdesigns.com/blogs/elberry

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

The keychain plugin probably isn't looking in the same location in the keychain as Subversion stores the credentials. It would be nice if it could.

Changed in bzr-svn:
status: New → Invalid
Revision history for this message
Andrew Berry (andrewberry) wrote :

Even if the credentials aren't shared with SVN's keychain items, it would be a big improvement to save the credentials at all. This bug makes accessing protected repositories over HTTP(S) really difficult, as credentials aren't even saved in memory during a single bzr operation.

Revision history for this message
Eric Berry (elberry) wrote :

Hi Andrew, It's not exactly what you are looking for, but you can save your credentials in the ~/.bazaar/authentication.conf

I've found this works for most of my svn repositories over https. It won't ask you to enter your credentials again.

Eg:
[site]
scheme = https
host = your.host.com
user = username
password = password

Revision history for this message
Andrew Berry (andrewberry) wrote :

Thanks Eric for the tip. Unfortunately, I never got to test it fully. If you leave scheme as https, bzr assumes it's a bzr, and not an svn repository. So, I tried setting scheme to svn+https... and I got a Keychain authorization prompt! Using svn+https caused bzr to use my existing credentials from SVN, which was exactly what I wanted. It looks like the bug is only triggered when the remote repository detection code is called.

Leo (leorolla)
Changed in bzr-keychain:
status: New → Confirmed
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.