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

Checkbox "do not show this again for apps from the publisher and location above" not working

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_141"
      Java(TM) SE Runtime Environment (build 1.8.0_141-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 10.0.16299.309]

      A DESCRIPTION OF THE PROBLEM :
      This is an addition to
      https://bugs.openjdk.java.net/browse/JDK-8157337
      and
      https://bugs.openjdk.java.net/browse/JDK-8175981

      we are using webstart for a long time but the checkbox "do not show this again for apps from the publisher and location above" is not working although our application is signed.

      According the the mentioned bugs webstart supports two options to identify that tha application is already trusted:
      solution 1: href-attribute to the jnlp-file
      solution 2: hash of the whole file

      unfortunately both solutions didn't work for us because our jnlp-file has dynamic argument (for example a generated session-id).
      --> Therefore the hash is always different

      Becuase we can only download the jnlp after login also the url to the jnlp contains a session id and if the jnlp is generated a new user-session will be opend.

      This means:
      if I add the href to the jnlp without the session-information I get a resource not found error because we are returning a 404 in this case.

      If I add the session-information this will create a new user session if I start the jnlp because it seems that the jnlp is loaded from href. :-/

      Nevertheless I tried to add all informations into the href but then I get the exception at the end of the text. :-(

      Is there maybe another option to get the checkbox to work?
      Maybe somthing like base-url of the application?
      e.g. instead of http://myserver:1234/myapp/webstart.jnlp;jsessionid=234r289ur893u98
      only http://myserver:1234/myapp/
      Or simply use the code-base-attribute which is our case http://myserver:1234/myapp/


      CouldNotLoadArgumentException[ Angegebene Datei/URL konnte nicht geladen werden: C:\Users\mkoch\AppData\Local\Temp\tmp_cache2012857727700908989.tmp]
      at com.sun.javaws.Main.launchApp(Unknown Source)
      at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
      at com.sun.javaws.Main.access$000(Unknown Source)
      at com.sun.javaws.Main$1.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.FileNotFoundException: C:\Users\mkoch\AppData\Local\Temp\tmp_cache2012857727700908989.tmp (Das System kann die angegebene Datei nicht finden)
      at java.io.FileInputStream.open0(Native Method)
      at java.io.FileInputStream.open(Unknown Source)
      at java.io.FileInputStream.<init>(Unknown Source)
      at java.io.FileInputStream.<init>(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      ... 5 more


      Markus

      REGRESSION. Last worked in version 8u162

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It would be nice if a checked "do not show this again for apps from the publisher and location above" would work. :-)

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              herrick Andy Herrick (Inactive)
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: