JDK-5010291 : Proxy host is retunrned as null when PAC file points to "DIRECT"
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.2_03
  • Priority: P5
  • Status: Closed
  • Resolution: Not an Issue
  • OS: solaris_2.5
  • CPU: x86
  • Submitted: 2004-03-09
  • Updated: 2004-05-03
  • Resolved: 2004-05-03
Related Reports
Relates :  
Description
Please refer to bugid 4988192.
As a workaround to bugid 4988192 the following solution was proposed by
the plugin team ...
ProxyInfo proxy  = PluginProxyManager.getProxyInfo(url);
String proxyInfo =  proxy.getProxy();  // get the host name
int port = proxy.getPort(); // get the port.

This solution works only when the PAC files points to proxy server (e.g
PROXY host:proxy).
However a PAC file can return "DIRECT" also.

If the PAC file points to "DIRECT" the proxy host returned should be
a string, like "DIRECT" and not null.

Comments
SUGGESTED FIX Retrun "DIRECT" instead of null
11-06-2004

EVALUATION As Deva mentioned, the API is not public used and there won't be a plan to fix it in short term unless no other ways to address the customer's issues. ###@###.### 2004-03-12
12-03-2004