JDK-8017164 : Invalid URL to GetJava web page could be formed in deployJava.js in some cases
  • Type: Bug
  • Component: deploy
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-06-20
  • Updated: 2014-02-12
  • Resolved: 2013-06-27
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 7 JDK 8
7u40Fixed 8 b97Fixed
Description
deployJava.js

getJavaURL: 'http://java.com/dt-redirect',


If you look at how getJavaURL is used - we might append it with query-string/form values:

  location.href = this.getJavaURL +
                        ((this.returnPage != null) ?
                        ('&returnPage=' + this.returnPage) : '') +
                        ((this.locale != null) ?
                        ('&locale=' + this.locale) : '') +
                        ((this.brand != null) ?
                         ('&brand=' + this.brand) : '');


So for example, if returnPage is "http://www.google.com", it does not work now, because it will be:

http://java.com/dt-redirect&returnPage=http://www.google.com&locale=en-US

Comments
SQE-OK to get this issue fix for 7u40. Javascript changes only and fix is requested by important customers like POGO
2013-06-28

Test pages to verify fix added.
2013-06-20