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.
Many organizations use pac files for proxy settings. In some organizations, the contents of the pac are difficult to decipher or provide special settings/routings that are not configurable through a simple http or socks proxy. NetBeans needs to accept PAC files for proxy settings.
I did some research on this topic and this is what I've found out so far (copy-paste from our project's tracker). If you have any other knowledge or comments, whether you would accept Mozilla Rhino version, or you know how to fix this without it, ... please speak-up. Solution: --------- The best way was agreed to provide patch to the NetBeans team. But... see 'Implementation problem' section below. Starting point in NetBeans code-base: - o.n.core.ui.options.general package in core.ui module - org.netbeans.core.NbProxySelector class in o.n.core module Implementation problems: It is not enough to just evaluate PAC file via JDK scripting API. The bindings must contain functions predefined by the PAC specification[1]. As Mark A. Ziesemer's implementation[2] shows some of those might be implemented in JavaScript but others seemingly cannot. Those which cannot must be implemented in Java and registered/added to the bindings. Unfortunately this is not allowed by JDK scripting API (at least without non-public JDK packages and/or reflection). It is possible with Mozilla Rhino implementation however. So seemingly we will have to bundle Mozilla Rhino implementation. This might make it harder to push the patch to the NetBeans. Acceptable solution: Own platform build on top of the patched release691 (or whatever latest stable) branch in 'releases' repository and use it as a base for our application. Documentation: -------------- [1] Proxy Client Autoconfig File Format (Specification) --> http://web.archive.org/web/20060424005037/wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html [2] Mark A. Ziesemer: MarkUtils-PacProxySelector for Java --> http://blogger.ziesemer.com/2009/05/markutils-pacproxyselector-java.html [3] Wikipedia --> http://en.wikipedia.org/wiki/Proxy_auto-config
Implemented in NetBeans 7.0 Beta2, since this version NB can detect PAC settings from system and returns network proxy based on this PAC file. On the other hand, there is not new UI in Tools|Options for set PAC file manually. I close as fixed for now, in the case of missing UI please file new issue. Thanks
I upgraded to Netbeans 7 Beta 2 on Mac OS X, and even though I can access my FTP server and other machines from behind my company's proxy server (for instance, through FileZilla), Netbeans does not allow SVN or FTP/SFTP access using PAC file settings.
I believe this has been evaluated since then. Jirko, what is the status?
(In reply to comment #3) > I upgraded to Netbeans 7 Beta 2 on Mac OS X, and even though I can access my > FTP server and other machines from behind my company's proxy server (for > instance, through FileZilla), Netbeans does not allow SVN or FTP/SFTP access > using PAC file settings. Please, file another issue against versioncontrol/subversion with all details (proxy settings, messages.log etc.) Thanks