JDK-4754925 : WebStart does not correctly configure with AutoProxy file
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 1.2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-09-27
  • Updated: 2002-09-30
  • Resolved: 2002-09-30
Related Reports
Duplicate :  
Description

Name: nt126004			Date: 09/27/2002


FULL PRODUCT VERSION :
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

and

java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
service pack 2

A DESCRIPTION OF THE PROBLEM :
WebStart is using the wrong proxy server for our environment.
Our auto-proxy config file looks like:

  function FindProxyForURL(url, host)
    {
    if (isPlainHostName(host))
      return "PROXY 192.168.1.125:8081";
    else
      return "PROXY 192.168.1.177:8080";
    }

This configuration file causes the browser to use one proxy
for internal servers, another for external servers.  It
appears that WebStart is attempting to use the internal
proxy for requests to external servers...so I conclude that
it is not reading the autoconfiguration file correctly.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Configure IE to use the above auto-proxy file (which must be
placed on a webserver)
2. Start WebStart
3. From the WebStart menu, select File->Preferences


EXPECTED VERSUS ACTUAL BEHAVIOR :
The "Use Browser" proxy setting is selected (good!) but the
IP address selected is for the wrong server.  In the above
example file, the selected proxy address is the first one
that appears in the config file source code.  However, it
should the second one, since that is the correct proxy for
external domains (servers).  This script works fine with
both IE and Netscape.
As a result, WebStart cannot check for updates becuase it is
using the wrong proxy server and there is no direct path to
the Internet available.

REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 164356) 
======================================================================

Comments
EVALUATION This is a dupe of : 4433701, and 4469455, ie: webstart does not contain a javascript interpreter, and makes only rudimentry attempt to extract proxy settings from auto config script. ###@###.### 2002-09-30
30-09-2002