This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I attempt to PUSH from my local GIT repository to my remote repository on GitHub through Netbeans 7.1 Beta using HTTPS, I get the following error: "Git command returned with the following error: https://liquidsunshine@github.com/liquidsunshine/OpenTripPlanner.git: 401 Authorization Required" Prior to PUSHing, I gave it my username and password, but for some reason it does not seem to be authenticating properly with GitHub. Additionally, it does not request my username or password again despite the 401 error. If I use the SSH/public key method, it works just fine.
I experience no such problem. Attach the message log: ~/.netbeans/7.1beta/var/log/message.log
And does the push via https on commandline work?
Created attachment 112749 [details] Messages.log for GIT malfunction Here is the log file you requested.
When I attempt to PUSH via command-line git, it works: $ git push https://github.com/liquidsunshine/OpenTripPlanner.git +refs/heads/master:refs/heads/master Username: Password: Counting objects: 15, done. Delta compression using up to 2 threads. Compressing objects: 100% (9/9), done. Writing objects: 100% (9/9), 1.02 KiB, done. Total 9 (delta 5), reused 0 (delta 0) To https://github.com/liquidsunshine/OpenTripPlanner.git ef24764..3b66cfc master -> master And the file is successfully updated on GitHub.
For the record, GIT PUSHing works fine from NetBeans on my laptop (I found this out after submitting the bug): Ubuntu 11.04 Product Version: NetBeans IDE 7.1 Beta (Build 201109252201) Java: 1.6.0_22; OpenJDK 64-Bit Server VM 20.0-b11 System: Linux version 2.6.38-12-generic running on amd64; UTF-8; en_US (nb) But not on my desktop: Ubuntu 11.10 Product Version: NetBeans IDE 7.1 Beta (Build 201109252201) Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02 System: Linux version 3.0.0-13-generic running on amd64; UTF-8; en_US (nb)
> Additionally, it does not request my username or password again despite the 401 error I will fix it > For the record, GIT PUSHing works fine from NetBeans on my laptop (I found this out after submitting the bug): > Ubuntu 11.04 > But not on my desktop: > Ubuntu 11.10 There could be a problem with storing the password in gnome-keyring: a related issue might be bug #203735 Please run the IDE with -J-Dversioning.util.KeyringSupport.level=-1 and attach th message log when a push fails again (check that the message log does not contain any passwords before submitting). Does the push fail also when you leave the option "Save Password" unselected?
fix: http://hg.netbeans.org/core-main/rev/fa97cfffa5fa
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/fa97cfffa5fa User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #204376 - Git PUSH operation fails over HTTPS on GitHub Report TransportException with "Authorization required" message as AuthorizationException and handle it accordingly.
Let me know how it works in the latest dev build. And please follow steps from Comment #6
I appear to have run into the same problem with Netbeans 7.0.1. Is the fix in the GIT Plugin? Will it be available for 7.0.1?(In reply to comment #5)
> Is the fix in the GIT Plugin? No, currently in development builds: http://bits.netbeans.org/download/trunk/nightly/latest/ > Will it be available for 7.0.1? No, will be delivered in 7.1