gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Git credential popup asking for username but needs password

Open bonbon2000 opened this issue 1 year ago • 4 comments

Version

0.13.4

Operating System

macOS

Distribution Method

dmg (Apple Silicon)

Describe the issue

I just updated git password (Bitbucket account). GitButler now asks me for updated credentials. In the popup it says "provide username" but on "Submit" I get error "Password is missing". I never get a prompt asking me for the password. Screenshot 2024-10-22 at 09 42 14

How to reproduce

No response

Expected behavior

Should be able to successfully update git logins from the app

Relevant log output

No response

bonbon2000 avatar Oct 22 '24 08:10 bonbon2000

Workaround was made by doing a regular "git fetch" from the terminal and get prompted correctly from there.

bonbon2000 avatar Oct 22 '24 12:10 bonbon2000

Thanks a lot for reporting.

Without knowing exactly the cause, the error is produced by GitButler and originates here:

https://github.com/gitbutlerapp/gitbutler/blob/94ff87a72c50252c0a54732a56f2f5d57e58ca9f/crates/gitbutler-git/src/repository.rs#L266-L271

It looks like the prompt didn't yield anything, even though from what I understand, it only showed once and then never again (in the same GitButler session?).

Byron avatar Oct 22 '24 14:10 Byron

I got a prompt asking for username, and was expecting another for password but that one never appeared, instead an error that said I never passed in a password. So I would guess there is a state-mismatch.

bonbon2000 avatar Oct 22 '24 16:10 bonbon2000

Hey @bonbon2000, thanks for reporting this. I've seen this happen. I'll take a look

estib-vega avatar Oct 25 '24 07:10 estib-vega