JDK-6697999 : Deployment toolkit redirects to java.com with Opera and Safari
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u10
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-05-06
  • Updated: 2011-02-16
  • Resolved: 2008-07-16
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.
JDK 6 JDK 7
6u10 b28Fixed 7Fixed
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
SUGGESTED FIX http://web-east.east/www/webrevs/ah22606/1.6.0_10/6694707.6697999/
26-06-2008

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.
23-06-2008