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

jnlp dtd 1.5 and 6.0 are errorrous

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • deploy
    • b94
    • x86
    • linux, windows_xp

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      generic

      A DESCRIPTION OF THE PROBLEM :
      the dtd found at:
      http://java.sun.com/dtd/JNLP-1.5.dtd
      and
      http://java.sun.com/dtd/JNLP-6.0.dtd

      have at least one error.
      The comma between "desktop?" and "menu?" is missing
      "<!ELEMENT shortcut (desktop? menu?)>"
      the correct(?) version is:
      "<!ELEMENT shortcut (desktop?, menu?)>"

      AND the PUBLICID is missing 1.5 and 6.0!

      an older version was : "-//Sun Microsystems, Inc//DTD JNLP Discriptor 1.1//EN", but the current ones are missing.

        Bug 4404764 is marked as closed, but the correct location of the dtd's are missing.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      just create a *.jnlp and try to validate it against the dtd's


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      JNLP file "simple-application.jnlp":
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Discriptor 1.1//EN" "http://java.sun.com/dtd/JNLP-1.5.dtd">
      <jnlp spec="1.0+">
      <information>
      </information>
      <application-desc/>
      </jnlp>

      ANT build script:
      <?xml version="1.0" encoding="UTF-8"?>
      <project name="jnlp-task-test" basedir=".">
      <target name="simple-application" description="minimal JNLP">
      <xmlvalidate file="./simple-application.jnlp">
      </xmlvalidate>
      </target>
      </project>
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      copy the dtd's to local filesystem and fix the bug local
      I submitted the updated dtds to the Publishing team of java.sun.com. Mary (###@###.###) is posting them to the website today.

      They are available at

      http://jscpreview.sfbay/dtd/JNLP-1.5.dtd
      http://jscpreview.sfbay/dtd/JNLP-6.0.dtd

      for preview and confirmation.

       - Jacob Royal

            jtroyal Jacob Royal (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: