JDK-4780671 : password protected application won't launch in offline mode.
  • 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-11-18
  • Updated: 2002-11-20
  • Resolved: 2002-11-20
Related Reports
Duplicate :  
Description

Name: nt126004			Date: 11/18/2002


FULL PRODUCT VERSION :
Java Web Start 1.2, JRE 1.4.1

FULL OPERATING SYSTEM VERSION :

Windows 2000, Windows XP, Solaris 8 SPARC

ADDITIONAL OPERATING SYSTEMS :

I believe this is also a problem on Linux


A DESCRIPTION OF THE PROBLEM :
If a downloaded JWS application hosted on a password protected
server is launched while no internet connection is available, it 
*may* fail to launch if the _default.forcedUpdateCheck flag is
set to true

The problem with the automatic update is that it will put
up a requester asking for a login and password because our
application is hosted on a password protected web site.

Even worse, if you launch the Java Web Start GUI to launch
a different application, it will still put up a requester
asking for login and password to our application. Imagine
if you have 10 Java Web Start applications downloaded from
password protected web-sites, you would have to press
cancel 10x(!).

Whats worse, if I press cancel, then the application will
fail to launch(sometimes it launches, but not always).
The "checking for updates" progress requester flashes for a
while, then produces an error message.

Here is my setup:

- Our application must work without an internet connection/offline.
- Hosted on IIS without version based download protocol.
- Password protection is most likely IIS specific.
- Client JWS 1.2 w/JDK 1.4.1(our application uses 1.4
features...)
- We would like to deploy our application on Windows,
Solaris, Linux and Iris(Mac as well, if it is free).

These steps had no effect:

- I figured out that there is a small icon in the lower
left corner that can be clicked to "disconnect" JWS. It
will still ask for password/login to the password protected
web-site.

The only workaround I've found is not very pretty:

Ask the user to download the whole Java Web Start as a zip,
unzip to a local directory, manually modify the
codebase="file://c:/foobar".


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Place a JWS app on an IIS server which is password
protected
2. Install and launch it
3. Remove internet connection
4. Press cancel on the requester which asks for password to
check for an update
5. Sometimes it launches, repeat a couple of times

EXPECTED VERSUS ACTUAL BEHAVIOR :
I would have expected to be able to launch a JWS even if I
was offline.

----------- BEGIN SOURCE ---------------
Here is my JNLP file(slightly edited because the software
is still in Beta testing).

<?xml version="1.0" encoding="utf-8"?>
<jnlp
spec="1.0+"
codebase="http://www.xxxx.com/beta"
href="myapp.jnlp">
<information>
<title>Xxxxx</title>
<vendor>XxxxS</vendor>
<homepage href="http://www.xxxx.com"/>
<description>XXxx yyy</description>
<icon href="xxxx.gif"/>
<icon kind="splash" href="xxxx.gif"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="myapp.jar"/>
<jar href="Serialio.jar"/>
<jar href="jspComm.jar"/>
</resources>
<resources os="Windows" arch="x86">
<nativelib href="win32com.jar"/>
</resources>
<resources os="Solaris" arch="sparc">
<nativelib href="solarissparc.jar"/>
<property name="SERIAL_PORT_LIST"
value="/dev/ttya:/dev/ttyb"/>
</resources>
<resources os="SunOS" arch="sparc">
<nativelib href="solarissparc.jar"/>
<property name="SERIAL_PORT_LIST"
value="/dev/ttya:/dev/ttyb"/>
</resources>
<resources os="SunOS" arch="x86">
<nativelib href="solarisx86.jar"/>
<property name="SERIAL_PORT_LIST"
value="/dev/ttya:/dev/ttyb"/>
</resources>
<resources os="Linux" arch="x86">
<nativelib href="linuxx86.jar"/>
</resources>
<resources os="Linux" arch="i386">
<nativelib href="linuxx86.jar"/>
</resources>
<resources os="Mac" arch="PowerPC">
<nativelib href="macos9.jar"/>
</resources>
<resources os="Irix" arch="mips">
<nativelib href="irixmips.jar"/>
</resources>
<application-desc main-class="com.xxxx.gui.GUI"/>
</jnlp>
------------ END SOURCE ----------------


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER WORKAROUND :
Ask the user to download the whole Java Web Start as a zip,
unzip to a local directory, manually modify the
codebase="file://c:/foobar", launch locally.
(Review ID: 166101) 
======================================================================

Comments
EVALUATION Although it is the correct behavior for the app to fail to launch if "force update check" is set, there is a bug (see part 4 in eval of 4780676) that causes this to be set when it shouldn't be. This is the underlying cause of this problem so I am marking this as a dupe of 4780676 ###@###.### 2002-11-20
20-11-2002