Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7195953

No application argument are passed.

    XMLWordPrintable

Details

    • b57
    • x86
    • windows_7
    • Verified

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

                igor Igor Nekrestyanov (Inactive)
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: