Bug 476102 - Proxy Credentials http.proxyUser and http.proxyPassword ignored
Summary: Proxy Credentials http.proxyUser and http.proxyPassword ignored
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-28 04:46 EDT by Benjamin Garn CLA
Modified: 2015-09-17 09:04 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Garn CLA 2015-08-28 04:46:22 EDT
JGit is respecting the proxy settings provided to the JVM by -Dhttp.proxyHost and -Dhttp.proxyPort, but ignoring the proxy credentials provided by -Dhttp.proxyUser and -Dhttp.proxyPassword.

Even though those attributes are not 100% java standard, they are used everywhere...
Comment 1 Christian Halstrick CLA 2015-09-17 09:04:44 EDT
I think JGit is never reading explicitly the system properties http.proxyHost, http.proxyPort. It's a feature of the JDK as described here: https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html. When JGit opens http connections using the classes under java.net then these classes react on a system property http.proxyHost beeing set. Sadly I don't see support for user/password protected proxies. The discussion at http://stackoverflow.com/questions/1626549/authenticated-http-proxy-with-java shows some ideas what could be added to JGit in order to support such proxies. Other ideas?