JAVA WebStart is NOT handling PAC-file (Proxy Auto Config)
Failing product name .......: Java WebStart v.1.5 (latest version)
Sytem type (E420R/..) ......:
Operating system ...........: Windows XP / Windows 2000 and InterNet Explorer v.6.x
Short problem description ..: Java WebStart and Proxy Autoconfiguration not working
Detailed problem description:
Customer is currently trying to roll out a solution based on Java WebStart. What Customer is trying to do is to load a Jar file from a server on the Internet.
The customer uses proxy servers to restrict the access to the net.However we have managed to get an exception in one of the proxies to our server so we can use it without proxy autentication. Our servers are currently running apache with some other applications. This works in their Internet Explorer where they use a Proxy setup. It is a script called a "pac" script. (Proxy Auto Config). Which tells the client which proxy to go through for a specific adress.
When The Customer try to enter this information in "Control Panel -> Java" we get no success, nor does it seem to work with the "Use browser setting". The only way we can make it work is to enter "our" specific proxy manually. This however, is not an option in the production environment, as they use Java for other things aswell.
So, Customer question is, are they are doing something wrong, or have they might stumbled across a bug? PAC File that is NOT working:
var proxy_set = "PROXY proxyA.company.com:80; PROXY proxyF.company.com:80";
StandardProxy=true ;
function FindProxyForURL(url, host) {
if( host == "localhost" ) {
return "DIRECT";
}
// The following sites are routed to proxyeu4, where exceptions are stored
if (
//Rule 122 - CPSS00002131772
dnsDomainIs(host, "www.webportal.nu") ||
//Rule 187 - CPSS00002185708
dnsDomainIs(host, "146.192.73.3") ||
dnsDomainIs(host, "146.192.73.1") ||
dnsDomainIs(host, "webtoprint.yara.com") ||
dnsDomainIs(host, "www.webtoprint.yara.com") ||
dnsDomainIs(host, "mediabase.edbasa.com") ||
dnsDomainIs(host, "web2print.edbasa.com") ||
dnsDomainIs(host, ".citicorp.com")
) {
return "PROXY proxyz.company.com:80";
}
if (dnsDomainIs(host, ".company1.com")) {
return "DIRECT";
}
if (dnsDomainIs(host, ".company2.com")) {
return "DIRECT";
}
return proxy_set ;
}