United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6697999 Deployment toolkit redirects to java.com with Opera and Safari
JDK-6697999 : Deployment toolkit redirects to java.com with Opera and Safari

Details
Type:
Bug
Submit Date:
2008-05-06
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2008-07-16
Component:
deploy
OS:
windows_xp
Sub-Component:
deployment_toolkit
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b28)

Related Reports
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b22)
Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [version 5.1.2600] French edition

EXTRA RELEVANT SYSTEM CONFIGURATION :
Opera 9.26
Safari 3.1

A DESCRIPTION OF THE PROBLEM :
If you use the deployment toolkit to deploy an applet, Opera and Safari users will be redirected to the Java downloads for all operating systems page on Java.com. Even if they have the latest version of Java installed.

Even if the browser are not officially supported with the deployment toolkit I think that the default behaviour should be to display the applet as requested.

There is for all browser a navigator.javaEnabled() JavaScript function that maybe give a hint.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Go to http://www.japplis.com/resources/blogs/TestDT.html with Opera or Safari on Windows.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Something like http://www.japplis.com/jlearnit/dicos/english-french.html
ACTUAL -
http://java.com/en/download/manual.jsp?host=java.com&returnPage=http://www.japplis.com/resources/blogs/TestDT.html&locale=en

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Write a Javascript function that detect the browser and call deployJava.js only when it's IE or Mozilla.

                                    

Comments
EVALUATION

if detection determines that no suitable java is installed, deployJava.runApplet() will go to the download page.  This seems to work for NS, FF, and IE, but for Safari and unknown browsers such as Opera, it would be beter just to try to launch the applet.
Opera also contains it's own private copy of the jre, so this seems to work beter even though we cannot detect it.
                                     
2008-06-23
SUGGESTED FIX

http://web-east.east/www/webrevs/ah22606/1.6.0_10/6694707.6697999/
                                     
2008-06-26



Hardware and Software, Engineered to Work Together