-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b57
-
x86
-
windows_7
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2230153 | 7u21 | Igor Nekrestyanov | P3 | Closed | Fixed | b02 |
JDK-8000156 | na | Victor Drozdov | P3 | Closed | Fixed | b01 |
FULL PRODUCT VERSION :
1.7.0_07
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
I have a simple java web start demo page, Like this:
---------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Java web start demo page</title>
</head>
<body>
<script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script>
<script type="text/javascript">
var jnlp = "http://localhost/demo.jnlp";
var version = "1.7+";
if (deployJava.versionCheck(version)) {
alert("version match");
deployJava.launchWebStartApplication(jnlp, version);
}
else {
alert("version mismatch");
var install = deployJava.installJRE(version);
// var install = deployJava.installLatestJRE();
alert(install);
if (install == false) {
//redirect to download jre
window.location = "http://localhost/jre-7u3-windows-i586-iftw.exe";
}
}
</script>
<p>A simple java web start demo</p>
</body>
</html>
--------------------------------------------------------------------------------------------------
this page opens jnlp file using javascript, and the jnlp file has <argument> fields which define arguments to be passed.
but the process which opend by this way, has no arguments.
it runs normally when the user manually types the adress of jnlp file in web browser (and don't use javascript).
this issues occurs with Java 7 update 7. (and may occurs with under 7.)
this issues does not occur with Java 7 update 3.
REGRESSION. Last worked in version 7
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. make a simple jnlp file with argument field.
2. make a web page which opens jnlp file using javascript.
3. navigate to page and test if the invoked program has the arguments.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
invoked program should have arguments.
ACTUAL -
invoked program have no argument.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
no error messages.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Java web start demo page</title>
</head>
<body>
<script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script>
<script type="text/javascript">
var jnlp = "http://localhost/demo.jnlp";
var version = "1.7+";
if (deployJava.versionCheck(version)) {
alert("version match");
deployJava.launchWebStartApplication(jnlp, version);
}
else {
alert("version mismatch");
var install = deployJava.installJRE(version);
// var install = deployJava.installLatestJRE();
alert(install);
if (install == false) {
//redirect to download jre
window.location = "http://localhost/jre-7u3-windows-i586-iftw.exe";
}
}
</script>
<p>A simple java web start demo</p>
</body>
</html>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
do not use javascript.
1.7.0_07
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
I have a simple java web start demo page, Like this:
---------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Java web start demo page</title>
</head>
<body>
<script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script>
<script type="text/javascript">
var jnlp = "http://localhost/demo.jnlp";
var version = "1.7+";
if (deployJava.versionCheck(version)) {
alert("version match");
deployJava.launchWebStartApplication(jnlp, version);
}
else {
alert("version mismatch");
var install = deployJava.installJRE(version);
// var install = deployJava.installLatestJRE();
alert(install);
if (install == false) {
//redirect to download jre
window.location = "http://localhost/jre-7u3-windows-i586-iftw.exe";
}
}
</script>
<p>A simple java web start demo</p>
</body>
</html>
--------------------------------------------------------------------------------------------------
this page opens jnlp file using javascript, and the jnlp file has <argument> fields which define arguments to be passed.
but the process which opend by this way, has no arguments.
it runs normally when the user manually types the adress of jnlp file in web browser (and don't use javascript).
this issues occurs with Java 7 update 7. (and may occurs with under 7.)
this issues does not occur with Java 7 update 3.
REGRESSION. Last worked in version 7
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. make a simple jnlp file with argument field.
2. make a web page which opens jnlp file using javascript.
3. navigate to page and test if the invoked program has the arguments.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
invoked program should have arguments.
ACTUAL -
invoked program have no argument.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
no error messages.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Java web start demo page</title>
</head>
<body>
<script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script>
<script type="text/javascript">
var jnlp = "http://localhost/demo.jnlp";
var version = "1.7+";
if (deployJava.versionCheck(version)) {
alert("version match");
deployJava.launchWebStartApplication(jnlp, version);
}
else {
alert("version mismatch");
var install = deployJava.installJRE(version);
// var install = deployJava.installLatestJRE();
alert(install);
if (install == false) {
//redirect to download jre
window.location = "http://localhost/jre-7u3-windows-i586-iftw.exe";
}
}
</script>
<p>A simple java web start demo</p>
</body>
</html>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
do not use javascript.
- backported by
-
JDK-2230153 No application argument are passed.
-
- Closed
-
-
JDK-8000156 No application argument are passed.
-
- Closed
-
- relates to
-
JDK-7198818 Deploy build broken on windows
-
- Closed
-