JDK-6694707 : The deployment toolkit redirect to a page in English
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6,6u10
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2008-04-28
  • 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
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
None

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

EXTRA RELEVANT SYSTEM CONFIGURATION :
Internet Explorer 6

A DESCRIPTION OF THE PROBLEM :
When the deployment toolkit javascript is used to install the JRE, you are redirected to a page in the English language even if your locale is French.

The redirected page I have is
http://java.com/en/download/windows_ie.jsp?host=java.com&locale=en

Note that if I go to http://java.com/getjava I'm correctly redirected to http://java.com/fr/download/index.jsp

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install the French edition of Windows and execute the script at
https://jdk6.dev.java.net/testDT.html (the one with deployJava.installLatestJRE(); )

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
redirection to http://java.com/fr/download/windows_ie.jsp?host=java.com&locale=fr
ACTUAL -
redirection to http://java.com/en/download/windows_ie.jsp?host=java.com&locale=en

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
https://jdk6.dev.java.net/testDT.html
---------- END SOURCE ----------

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

EVALUATION The dt javascript has a variable which can be set to the desired locale: deployJava.locale="es"; this will cause install page to be displayed to the desired language (in the above case, spanish). This was defaulting to english, and I am changing it to default to null. In the null case, I can test if the install page, http://java.sun.com/webapps/getjava/BrowserRedirect , will redirect to the deefault lauguage on the system or in the browser.
23-06-2008