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.

Bug 224765 - [73cat] Cannot push from jdk8lambda
Summary: [73cat] Cannot push from jdk8lambda
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-11 15:22 UTC by misterm
Modified: 2014-02-12 15:50 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (100.49 KB, text/plain)
2013-01-11 15:22 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-01-11 15:22:27 UTC
I get the following message:

https://user@bitbucket.org/company/repository.git: cannot open git-receive-pack

Product Version = NetBeans IDE Dev (Build jdk8lambda-1604-on-20121214)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0-ea
Runtime = OpenJDK 64-Bit Server VM 25.0-b11
Comment 1 misterm 2013-01-11 15:22:35 UTC
Created attachment 130120 [details]
IDE log
Comment 2 Ondrej Vrabec 2013-01-11 15:27:09 UTC
INFO [org.netbeans.modules.git]: https://....: cannot open git-receive-pack
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
	at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
	at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
	at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)
	at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:88)
Caused: java.lang.RuntimeException: Unexpected error

There seems to be a problem with the server certificate. Are you able to push:
1) from commandline?
2) with JDK 7?
3) with http.sslVerify=false specified in your user .gitconfig file??
Comment 3 misterm 2013-01-11 15:28:30 UTC
I am able to push from trunk IDE build and JDK 7. This is a bitbucket repository.
Comment 4 Ondrej Vrabec 2013-01-11 15:37:39 UTC
Can you try 3) ? Add:
[http]
	sslVerify = false

to your user .gitconfig file.
Comment 5 misterm 2013-01-11 15:48:35 UTC
3) works.
Comment 6 Ondrej Vrabec 2013-01-14 14:34:50 UTC
works also with a standard jdk8 ea builds (i.e. non-lambda builds). It seems lambda builds (http://download.java.net/lambda/) are not fully functional (or have some features disabled) and in this case they probably do not check java keystore for trusted cert authorities. WONTFIX on NetBeans side for now, please let me know and reopen when reproducible later when JDK8 is feature-complete and its build is official.
Comment 7 DaWizz 2014-02-12 15:46:35 UTC
Nah, seems like a serious case of "stupid" to me. This works fine for me unless you have created the repository locally. Disable SSL? You're off your rocker. LOL. Much better solution. Open up the terminal and type: git push after you have done your commits in the IDE. As to why the devs here think disabling SSL verification, is smarter than changing the plugin to use git push? Sounds like a bunch of password and security hackery to me.

So since you have the solutions... Fix it.
Comment 8 DaWizz 2014-02-12 15:49:50 UTC
This is what the plugin does rather than git push:

==[IDE]== Feb 12, 2014 9:28:42 AM Committing... finished.
==[IDE]== Feb 12, 2014 9:28:50 AM Pushing - HashTable
git branch
git push https://github.com/hypersoft/HashTable.git refs/heads/master:refs/heads/master

That's completely ignoring user preference. In experienced developer world... We call this extreme ignorance at best.
Comment 9 Ondrej Vrabec 2014-02-12 15:50:42 UTC
(In reply to DaWizz from comment #7)
> So since you have the solutions... Fix it.
No i don't have a solution. Are you having troubles with pushing when running on JDK8? Then attach the IDE log with the error and your setup.