JDK-4847149 : 1.4.2 Plugin does not load applet classes if Windows Integrated Login is enabled
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.2
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-04-11
  • Updated: 2003-05-21
  • Resolved: 2003-05-21
Related Reports
Duplicate :  
Description

Name: gm110360			Date: 04/11/2003


FULL PRODUCT VERSION :
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)

FULL OS VERSION :
Microsoft Windows XP [Version 5.1.2600]

EXTRA RELEVANT SYSTEM CONFIGURATION :
Professional Edition with IIS

A DESCRIPTION OF THE PROBLEM :
If an IIS (Windows 2000) Virtual Directory has Anonymous
Login disabled and Windows Integrated Login enabled .. the
1.4.0_01 plugin will NOT load applet classes from this
Virtual Directory .. the IIS Server returns a 401 HTTP
status error .. Access Violation .. for the applet
classes .. while the plugin console shows java exception
ClassDefNotFound.

This appears to happen ONLY when the 1.4.2 plugin is
enabled .. running under IE 5.0, 5.5 and 6.0.

If you either disable the 1.4.2 plugin (revert to using
the IE VM) OR if you switch to using the 1.3.1_xx plugin
everything works just fine .. when you switch back to the
1.4.2 plugin .. you start getting the 401 HTTP status and
errors again from IIS and Class Not Found exceptions from
the plugin.

I should add that in 1.4.0 and 1.4.1 the NTLN Digest
authentication did not work at all. It does now in 1.4.2 ..
however the dialog should not be presented since I am already
logged into a Windows machine with the correct credentials.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create a new IIS Virtual Directory and map it to a
folder somewhere.
2. Disable Anonymous Login and Enable Windows Integrated
Login for this new Virtual Directory.
2. Copy ANY one of the 1.1 applet demos (html and class
files) on the JavaSoft site into a the new IIS Virtual
Directory.
3. Install and enable the 1.4.2 plugin using any version
(5, 5.5 or 6) of IE.
4. Open IE and goto http://<server>/<vd>/index.html .. or
whatever the main html file is.
5. You will get a Login dialog. BUG: you should NOT get this
since you are already logged into Windows. Re-enter your credentials.
5. The page load but the applet does not. In the Java Console you
will see Class Not Found exceptions.
6. Disable the plugin (use the MS JVM) and restart IE repeat step 4 and 5 ..
step 5 will now work.
7. If you un-install the 1.4.2 plugin and install the
1.3.1_03 plugin (for example) .. there will be NO problems when the
1.3.1_03 plugin is either enabled or disabled.


EXPECTED VERSUS ACTUAL BEHAVIOR :
No login dialog should be presented and the applet classes should be loaded when using the 1.4.2 plugin .. just as they do when using the MS JVM or with the 1.3.1_03 plugin.
You get an erroneous Login dialog that should be required. You get ClassDefNotFound errors in the plugin console windows and in the area
where the applet displayes when using an enabled 1.4.2 plugin.


ERROR MESSAGES/STACK TRACES THAT OCCUR :
You get ClassDefNotFound errors in the plugin console windows and in the area
where the applet displayes when using an enabled 1.4.2 plugin.

IIS is returning a 401 HTTP status code (Access Violation).


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Use any JavaSoft 1.1 demo applet .. I was using the 'Blinking Text' demo
applet.

---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Uh .. use the MS JVM.
(Review ID: 183769) 
======================================================================

Comments
EVALUATION I can only confirm the double anthentication problem. With extra authentication, I have not problem to load applet. ###@###.### 2003-04-15 New bug (#4855132) has been filed to address NTLM problem with plugin. We will address double authentication for NTLM in tiger. ###@###.### 2003-04-29
15-04-2003