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

APPLICATION_TEMPLATE.JNLP and Property/Value

    XMLWordPrintable

Details

    • windows_7

    Description

      FULL PRODUCT VERSION :
      java version "1.7.0_40"
      Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
      Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      APPLICATION_TEMPLATE.JNLP using your own properties :

      As soon as I try to use my own property/value with *, the JNLP Template refuses to validate.

      Can you confirm what CANNOT be used in the template with * ?

      Also please take in consideration :

      1. JNLPSigningException should tell us what element is 'wrong'

      2. Oracle Documentation need to be updated with what exactly can be variable and what is not or has been blacklisted. trial & error is hell.
      The doc is not clear that some or all ? property/value cannot be used.

      doc: http://download.oracle.com/otndocs/jcp/jnlp-7-mrel-spec
      http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/signedJNLP.html


      ADDITIONAL REGRESSION INFORMATION:
      java version "1.7.0_40"
      Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
      Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode, sharing)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      APPLICATION_TEMPLATE.JNLP using your own properties :

              <property name="jnlp.pc.server.addr" value="*"/>
              <property name="jnlp.pc.server.port" value="*"/>
              <property name="jnlp.pc.jdbc.type" value="*"/>
              <property name="jnlp.pc.ids.public.key" value="*"/>

      JNLP: All * set to actual values, or empty.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A working way to specify important connection and other properties informations in the JNLP file.

      In case of an Exception, usefull information on the responsible element that made the validation fail.
      ACTUAL -
      Exception without any usefull information.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      JNLPSigningException[Failed to validate signing of launch file. The signed version does not match the downloaded version.]
      at com.sun.javaws.jnl.LaunchDesc.checkSigningTemplate(Unknown Source)
      at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDescHelper(Unknown Source)
      at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDesc(Unknown Source)
      at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDesc(Unknown Source)
      at com.sun.javaws.Launcher.prepareResources(Unknown Source)
      at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
      at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
      at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
      at com.sun.javaws.Launcher.launch(Unknown Source)
      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)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Activity

          People

            jgordon Joni Gordon (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: