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

JNLP with extra double quote in property fails to get loaded


    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 8u20, 9
    • Fix Version/s: 9
    • Component/s: deploy
    • Environment:



      A test case to cover JDK-7112164 failed with jre8u20-b25 and jre9-b26 on win7/x64. Test description:
      Case develped for fix of 7112164: Java Webstart can not handle extra double quote in jnlp file correctly. Set VM property names includes and without double quote, check if correct value can be passed to application.

      Steps to reproduce:
      1. Import self signed ca self.valid.cert to have a valid trusted cert
      Open JCP -> Security -> Manage Certificates - Singer CA,import http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/crystal/DO_NOT_REMOVE_ME/jrebug/vmargs/lib/self.valid.cert
      2. Load jnlp with the following property:
           <property name=javapi.user0" value=testquote />
           <property name=javapi.user0 value=test />
      3. If app fails to get loaded with the following error, then this bug is reproduced:
      MissingFieldException[ The following required field is missing from the launch file: <property>name]
      at com.sun.javaws.jnl.XMLUtils.getRequiredAttribute(Unknown Source)
      at com.sun.javaws.jnl.XMLFormat.handleResourceElement(Unknown Source)
      at com.sun.javaws.jnl.XMLFormat.access$400(Unknown Source)
      at com.sun.javaws.jnl.XMLFormat$2$1.visitElement(Unknown Source)
      at com.sun.javaws.jnl.XMLUtils.visitChildrenElements(Unknown Source)
      at com.sun.javaws.jnl.XMLFormat$2.visitElement(Unknown Source)
      at com.sun.javaws.jnl.XMLUtils.visitElements(Unknown Source)
      at com.sun.javaws.jnl.XMLFormat.buildResourcesDesc(Unknown Source)
      at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(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)

      1. No such issue for 8u20-b14 and jre8u5-b13. With 8u20-b14 and jre8u5-b13, jnlp with extra double quote can get loaded
      2. Above jnlp is with singed jar and unsigned jnlp. With signed jnlp and signed jar, the issue is still there:




            • Assignee:
              vrao Vivek Rao (Inactive)
              wenjyang Crystal Yang (Inactive)
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: