JDK-4638440 : HTMLConverter generates invalid javascript, and is incompatible with ie
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.0,1.4.1
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_98,windows_nt
  • CPU: generic,x86
  • Submitted: 2002-02-15
  • Updated: 2002-09-30
  • Resolved: 2002-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
Related Reports
Duplicate :  
Description

Name: gm110360			Date: 02/14/2002


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


FULL OPERATING SYSTEM VERSION :Windows NT 4.0


ADDITIONAL OPERATING SYSTEMS :
Linux




EXTRA RELEVANT SYSTEM CONFIGURATION :
The versions of ie tested are 5.5 and 6.0 for nt (not xp)

A DESCRIPTION OF THE PROBLEM :
When I generate the All browsers extended platforms type
of html there seem to be errors in the javascript which
stop the page from being parsed properly. This lead to many
strange side affects such as Panels not being rendered
correctly etc. The most significant problem tho is that you
get an error dialog EVERY visit to the page due to the
script having "an undefined constant"

The plugin is also not correctly loaded under netscape 4.74
on linux (tested on debian)

This bug was not present on 1.3 plugin html converter

REGRESSION.  Last worked in version 1.3

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Generate an applet html page
2.Convert using Extended (Normal + all platforms)
3.Upload to webserver and point browser

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED: The browser should parse the html and hook the
plugin and the applet should display correctly.

ACTUAL: IE throws an error message regarding an undefined
constant. The applet is then sometimes not rendered
correctly on complext layouts utilizing boxLayout (side
affect )

ERROR MESSAGES/STACK TRACES THAT OCCUR :
The error complains of an undefined constant at line 22:

line 22 of the source code below is listed here:

  if (_ie == true) document.writeln('<OBJECT classid="clsid:CAFEEFAC-0014-0000-
0000-ABCDEFFEDCBA" WIDTH = "760" HEIGHT = "500"
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-
win.cab#Version=1,4,0,0"><NOEMBED><XMP>');


This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Here is a sample basic HTML page,

<HTML>
<BODY>
<applet code = CraftMain width=250 height=250>  
</applet> 
</BODY>
</HTML>

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

CUSTOMER WORKAROUND :
use only the Standard as this seems to work this is NOT
desirable for me however.
(Review ID: 139668) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis mantis-b03
14-06-2004

EVALUATION Too late for Hopper. Committing to Mantis. ###@###.### 2002-05-23 ###@###.### 2002-05-31 The only circumstance that I am not able to see this problem is when the "Microsfot Internet Explorer" check box is ** unselected ** in the Browser folder of Java Plug-in Control Panel. Which means Java Plug-in will not be used as the default java Runtime in IE. Please confirm wether this is the setup when this problem was produced. ###@###.### 2002-06-13 This problem can be produced when the "Extended (Standared + All Browsers/Platforms)" template is used with the HTMLConverter. The problem can be seen with both Navigator and IE. The resolution of fix: Appended a back slash character "\" to escape the EOL character when one JavaScript statement is formated to multiple lines
11-06-2004