credentialHelperSelector keep poping in 2.28 using windows identity story
- From
- Yohan de Oliveira <yohan.deoliveira@gmail.com>
- Date
- Aug 21, 2020, 15:40 UTC
- Message-ID
- <CADZrCYDayJ+kN08BQZ6DZXRc5hpZDr9mVFOWQPCawqfg_8Xzog@mail.gmail.com>
Hello,
I have some trouble when migrating from 2.27 to 2.28. here is my bugreport :
What did you do before the bug happened? (Steps to reproduce your issue) I migrated from 2.27.0 to 2.28.0
What did you expect to happen? (Expected behavior) I connect to a https bitbucket server (ssl is blocked). For This, I stock my login/token in the windows identity store. Here, I have my server address as : https://bitbucket.server login: User password: token So I use credential.helper manager. To trust the certificate, I need to set the http.sslBackend = schannel, or I face the error "SSL certificate problem: unable to get local issuer certificate". When I do a "git pull" I'm supposed to have a line : $ git pull Already up to date.
In the windows identity store a new entry is created with server address : https://User@bitbucket.server login:User passwod: ?? (maybe my token)
What happened instead? (Actual behavior) Instead, I have a strange behaviour where the "credentialHelperSelector" keep poping 2 times with the line : $ git pull error: key does not contain a section: - error: key does not contain a section: - Already up to date.
Everytime I do a git pull or anything that needs to ask the server, I have these 2 popups again and again and the error.
What's different between what you expected and what actually happened? Normally, I used to set the credentialHelperSelector to manager once for all and never ask again for it. I did this in version 2.20 a long time ago and did not have this popup for a long time since now. I don't see the error key does not contain a section: -
Anything else you want to add: Yes, by removing the new created entry in the windows identity store (https://User@bitbucket.server), there is still the 2 popups but no more error 'key does not contain a section: -'
For the same .gitconfig file, it doesn't give the same result between version 2.27 and 2.28. Returning back to 2.27, no more popups, everything works fine.
Here is a part of my .gitconfig
[color]
ui = auto[core]
autocrlf = input
eol = lf
longpaths = true[http]
sslBackend = schannel
postBuffer = 4096000[credential]
helper = managerPlease review the rest of the bug report below. You can delete any lines you don't wish to share. [System Info] git version: git version 2.28.0.windows.1 cpu: x86_64 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh compiler info: gnuc: 10.2 libc info: no libc information available [Enabled Hooks]
Best regards,
Yohan de Oliveira