question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Save Password" breaks Git authentication since 12.5

See original GitHub issue

Apache NetBeans version

Latest release

What happened

With NetBeans 12.4 I could save the password for remote Git repos without problems. With 12.5+ authentication fails when leaving “Save Password” checked and succeeds when it is unchecked. Commandline Git works fine, I have git config credential.helper set to store.

I am not sure, but NetBeans 12.4 seems to have been using KWalletManager to store the passwords and that doesn’t seem to work any more with NetBeans 12.5+.

How to reproduce

Since this is probably related to KWalletManager, this may only be reproducible on KDE/Plasma desktops.

  1. Try to Git -> Remote -> Pull from Upstream an existing project that worked with 12.4
  2. “Specify Git repository location” dialog appears
  3. Check “Save Password” and enter the (correct) password Result: “Specify Git repository location” dialog appears again
  4. Uncheck “Save Password” and enter the (correct) password Result: pull succeeds

Did this work correctly in an earlier version?

  • This used to work!

Operating System

Kubuntu 20.04 LTS

JDK

openjdk version “11.0.13” 2021-10-19

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

  • Yes I am willing to submit a PR!

Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
javierllorentecommented, Apr 7, 2022

@gitdode could you test this build: https://doppel-helix.eu/NetBeans-dev-dev-95d19747200936da808116322d7b6b677e6a534d-release.zip

It should improve the situation in that regard, that the build should automatically detect, that libsecret can’t be used on your system. I reproduced your problem (rename gnome-keyring, kill the running instance), but it would be great if you could give it a try.

I have tested this build on openSUSE 15.3 and I can also say that passwords are saved (ie: proxy password) without having to install gnome-keyring. Thanks Matthias!

1reaction
matthiasblaesingcommented, Mar 25, 2022

@gitdode could you test this build: https://doppel-helix.eu/NetBeans-dev-dev-95d19747200936da808116322d7b6b677e6a534d-release.zip

It should improve the situation in that regard, that the build should automatically detect, that libsecret can’t be used on your system. I reproduced your problem (rename gnome-keyring, kill the running instance), but it would be great if you could give it a try.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git keeps prompting me for a password - Stack Overflow
Sometimes the connection between SSH and the passphrases stored in the keychain can break. Run ssh-add -K or ssh-add ~/.
Read more >
7.14 Git Tools - Credential Storage
Here we tell git-credential-store to save some credentials: the username “bob” and the password “s3cre7” are to be used when https://mygithost is accessed....
Read more >
Credential prompt does not save credentials to store #476
Open Windows Credential Manager. The easiest method is [Start] -> Type "cred" -> Click on "Credential Manager" tile. · Click "Windows Credentials ......
Read more >
How to Fix Git Always Asking For User Credentials For HTTP ...
To prevent Git from asking for your username and password, you can enter the login credentials in the URL as shown. $ sudo...
Read more >
Solved: Git Credential Manager for Windows Popups
Solved: I keep getting popups for "Git Credential Manager for Windows" whenever SourceTree is running. Pretty sure the credentials for all.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found