Bug 204376 - Git PUSH operation fails over HTTPS on GitHub
Git PUSH operation fails over HTTPS on GitHub
Status: RESOLVED WORKSFORME
Product: versioncontrol
Classification: Unclassified
Component: Git
7.1
PC Linux
: P3 (vote)
: TBD
Assigned To: Ondrej Vrabec
issues@versioncontrol
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-28 22:58 UTC by liquidsunshine
Modified: 2011-11-14 08:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


Attachments
Messages.log for GIT malfunction (62.86 KB, text/x-log)
2011-11-02 16:42 UTC, liquidsunshine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liquidsunshine 2011-10-28 22:58:56 UTC
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.
Comment 1 Ondrej Vrabec 2011-10-31 09:01:44 UTC
I experience no such problem. Attach the message log: ~/.netbeans/7.1beta/var/log/message.log
Comment 2 Ondrej Vrabec 2011-10-31 10:09:56 UTC
And does the push via https on commandline work?
Comment 3 liquidsunshine 2011-11-02 16:42:38 UTC
Created attachment 112749 [details]
Messages.log for GIT malfunction

Here is the log file you requested.
Comment 4 liquidsunshine 2011-11-02 16:43:37 UTC
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.
Comment 5 liquidsunshine 2011-11-02 16:52:33 UTC
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)
Comment 6 Ondrej Vrabec 2011-11-03 09:43:56 UTC
> 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?
Comment 7 Ondrej Vrabec 2011-11-03 09:48:20 UTC
fix: http://hg.netbeans.org/core-main/rev/fa97cfffa5fa
Comment 8 Quality Engineering 2011-11-04 15:06:27 UTC
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.
Comment 9 Ondrej Vrabec 2011-11-13 19:45:40 UTC
Let me know how it works in the latest dev build. And please follow steps from Comment #6
Comment 10 creechy 2011-11-14 02:36:51 UTC
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)
Comment 11 Ondrej Vrabec 2011-11-14 08:42:55 UTC
> 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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo