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 216478 - allow git client to set proxy settings
Summary: allow git client to set proxy settings
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-07 10:35 UTC by Ondrej Vrabec
Modified: 2012-08-29 14:30 UTC (History)
2 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2012-08-07 10:35:00 UTC
git support in the IDE was unable to connect to a git repository over ssh *over a proxy*. I was able to find a solution and by setting a proxy to the jsch provider we're using i am able to connect to a github repository from inside the Oracle network. See http://hg.netbeans.org/core-main/rev/e94a039c574e
However the fix is not sufficient:
1) it still does not seem to support an authenticated proxy
2) it heavily depends on the fact that running in NetBeans the following is true: (proxy.address() instanceOf InetAddress) == true;

We need to somehow acquire proxyHost, proxyPort, proxyUsername, proxyPassword. However since the libs.git is an independent library, it cannot depend on other NetBeans modules and cannot access NB's ProxySettings utility class. Let's somehow allow the API's client to setup the proxy settings himself.
Comment 1 Ondrej Vrabec 2012-08-29 14:30:32 UTC
> 2) it heavily depends on the fact that running in NetBeans the following is true: (proxy.address() instanceOf InetAddress) == true;
Seems java does the same anyway, it casts SocketAddress to InetSocketAddress. So git commands can run even in JDev when their ProxySelector returns proper proxy for remote urls.
We're just probably missing the ability to go through an authenticated proxy.