JDK-4816800 : Webstart's proxy settings not available to application
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 1.2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2003-02-11
  • Updated: 2003-09-25
  • Resolved: 2003-09-25
Description

Name: nt126004			Date: 02/11/2003


FULL PRODUCT VERSION :
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)


FULL OPERATING SYSTEM VERSION :All operating systems


A DESCRIPTION OF THE PROBLEM :
We have an application launched by Webstart that needs
to issue an HTTP-Request to the server it was launched from.

For this it needs the proxy settings from Java Webstart,
which are supplied as system properties proxyHost and
proxyPort. But this is neither specified nor documented.

>Is the problem that you cannot
>access the proxy information?

I did find out how to access the proxy information, but
- it took a long time, because this is not documented
- I hate to use an undocumented feature

>Are you requesting a documentation change

At least. I want an officially documented way to access the proxy settings.
I do not want my application to depend on undocumented features. I do not
want my application to be broken by a future change of the way to access
the proxy information.

>a change to the JNLP API?

Either a change in the JNLP-API, like 
        String getHTTPProxyHost(),
        int    getHTTPProxyPort(),
or a the commitment, that Java Webstart will always and forever and on all
platforms set the system properties
        proxyHost
        proxyPort
when it launches an application.

EXPECTED VERSUS ACTUAL BEHAVIOR :
An official specified and documented way the lets an javaws
launched application read the proxy settings from javaws.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER WORKAROUND :
Use system properties proxyHost and proxyPort
(Review ID: 180587) 
======================================================================

Comments
EVALUATION The network connections made by the java application will use the proxy settings detected by java web start. If the application decided to specify their own proxy, it can always do so via the system properties proxyHost and proxyPort. Need to contact customer to get more information on his request for the new JNLP API. Also new JNLP API will only be considered in Tiger. ###@###.### 2003-02-11
11-02-2003