United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4638440 : HTMLConverter generates invalid javascript, and is incompatible with ie

Details
Type:
Bug
Submit Date:
2002-02-15
Status:
Resolved
Updated Date:
2002-09-30
Project Name:
JDK
Resolved Date:
2002-09-30
Component:
deploy
OS:
windows_nt,generic,windows_98
Sub-Component:
plugin
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.0,1.4.1
Fixed Versions:
1.4.2 (mantis)

Related Reports
Duplicate:

Sub Tasks

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
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
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b03


                                     
2004-06-14



Hardware and Software, Engineered to Work Together