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

Regression: Parameters passed into dtjava.js are ignored

    Details

      Backports

        Description

        FULL PRODUCT VERSION :
        java 1.8.0_05 or 1.7.0_60

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.1.7601]

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Internet Explorer 11 or 9

        A DESCRIPTION OF THE PROBLEM :
        Parameters given to the dtjava.js function are not passed on to the webstart application, when starting the application from Internet Explorer.

        Debugging the uncompressed version of dtjava.js (https://bitbucket.org/openjfxmirrors/openjfx-8-master-rt/src/2872be3a2984e57762b4d86a0465603bf2465bf5/modules/fxpackager/src/main/resources/resources/web-files/dtjava.js?at=default )

        reveals, that the old DT APIs are used, because the check in line 528 in dtjava.js returns false (ua.deploy is null on my system).

                                //check if new DT APIs are available
                                if (versionCheck("10.6+", ua.deploy)) {

        The old DT API seems not to handle params.

        This is a regression caused by
        https://bugs.openjdk.java.net/browse/JDK-8041386

        Reverting the change fixes the issue. The above check returns true.

        REGRESSION. Last worked in version 7u55

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        var app = new dtjava.App(jnlpFile,
        {
        params: {parameter1: 'test' }
        });
        var platform = new dtjava.Platform({
        jvm: "1.7.0_06+",
                javafx: "2.2+",
               jvmargs: "-Xmx1024m"
             });

        dtjava.launch(app, platform);

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Value of parameter1 is available in application
        ACTUAL -
        Value of parameter1 is not available in application

        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        Do not include current dtjava.js

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  almatvee Alexander Matveev
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: