Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4433713
Votes 0
Synopsis some proxy authentication flavors not supported
Category javawebstart:other
Reported Against 1.0
Release Fixed
State 11-Closed, duplicate of 4433701, bug
Priority: 3-Medium
Related Bugs 4433701
Submit Date 04-APR-2001
Description
We only seem to support some flavors of proxy authentication.  We get a lot of
feedback about us not working with firewall A or proxy server B.  Here is one example

>From:   xxxxx@xxxxx  
>Subject: Any conflict between JSSE and Java Webstart?
>To: javawebstart-  xxxxx@xxxxx  
>MIME-version: 1.0
>Content-disposition: inline
>X-MIMETrack: Serialize by Router on AU-AAPMTA001/AU/INTL(Release 5.0.6 |December 14, 2000) at 04/04/2001 04:28:40 PM
>
>
>Steve,
>
>Thanks for your prompt reply.  Let me describe our problems more in
>details.
>
>Our Java application deployed by JavaWebstart1.0 got problem at client-side
>when it tried to establish HTTPS connection via client's password-protected
>firewall. ( NO ERROR with firewall without password protection).
>
>
>1.Client side Error message in  java webstart console:
>
>java.io.IOException: Unable to tunnel through 10.11.12.55:80.  Proxy returns "HTTP/1.1 407 Proxy authentication required"
>     at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([DashoPro-V1.2-120198])
>     * * *
>
>details in nrmatest.txt
>(See attached file: nrmatest.txt)
>
>2. What we can get from our testing proxy (Basic authentication with base64
>encode)
>     Request sending to our proxy:
>
>     CONNECT 203.11.226.122:443 HTTP/1.0
>     User-Agent: JSSE
>
>     Response from our proxy
>
>     HTTP/1.0 407 Proxy Authentication Required
>     ................
>
>details in (See attached file: soap.test.txt)
>
>3.  Our Java application support HTTPS by using JSSE1.0.2.
>
>   public static void setupHTTPsSupport()
>  {
>
>     try
>     {
>      System.setProperty(
>        "java.protocol.handler.pkgs",
>        "com.sun.net.ssl.internal.www.protocol");
>
>      java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
>
>      // Work around for  JavaWebStart which requires this
>      // to be set as well. Note that in a usual application it wasn't required.
>      if (! isFactorySet)
>      {
>        URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory() {
>        public URLStreamHandler createURLStreamHandler(final String protocol)
>        {
>          if (protocol!=null && protocol.equals("https")){
>            return new com.sun.net.ssl.internal.www.protocol.https.Handler();
>          }
>          return null;
>        }
>        });
>        isFactorySet = true;
>      }
>    }
>    catch (Exception ex)
>    {
>      System.err.println ("Failed to install SSL support in DefaultDecisionSystem.setupHTTPsSupport()");
>      ex.printStackTrace();
>    }
>  }
>
>
>4.  Welcome to our website to reproduce the error in HTTPS data
>communication via password-protected proxy firewall.
>
>          http://www.pwcdecision.com
>
>          user:          webstart
>          password:      webstart
>
>ERROR happened when you try the menu "Actions/run"  and choose
>"pwcdecision.com" from  combo box "solver" and click OK button.
>
>
>
>We just wondering whether Java Webstart1.0  is compatible to JSSE1.0.2
>component. And whether we made any mistakes in our code?
>
>Thanks for your kind attention. And your help will enable us to stick to
>Java Webstart.
>
>Hongbo Jin
>
>Java Developer
>PricewaterhouseCoopers (Sydney)
>
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 01-FEB-2002
jesper1
This is happening because JSSE expects a HTTP/1.0 response, 
while the proxy is returning a HTTP/1.1 response.

See the following article from JavaWorld for a workaround: 
http://www.javaworld.com/javaworld/javatips/jw-
javatip111.html

Jesper de Jong



PLEASE NOTE: JDK6 is formerly known as Project Mustang