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

JNLP client sends wrong request to http server for applet-desc element

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jaws-1.0
    • jaws-1.0
    • deploy
    • 1.0-fcs
    • sparc
    • solaris_2.6
    • Verified



      Name: acR10002 Date: 10/20/2000


      Consider the following jnlp file excerpt:
      ------------------- test.jnlp ------------
       ...
       <resources>
          <j2se version="1.3 1.2"/>
          <jar href="applet.jar"/>
       </resources>
       <applet-desc
      main-class="Applet.class"
      documentbase="index.html"
       ...
       </applet-desc>
       ...
      -------------------------------------------
      where applet.jar contains file Applet.class.
      Supplying with the above file, client will send requests
      in a following sequence:

      GET /applet.jar HTTP/1.0
      GET /Applet.class HTTP/1.0

      The second request comes despite the fact Applet.class was already downloaded as
      a part of applet.jar. On the other hand, JNLP spec v1.0 (proposed final draft) says:
      =======================================
      ch.3.6.2
      --------
      The applet-desc element contains all information needed to launch an Applet,
      given the resources described by the resources elements.
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ch.6
      ----
      The JNLP Client can download four different kind of resources from the Web: JAR files, images, extensions, and
      JNLP files.
      =======================================
      So, that sounds like an applet class should be taken from resources described in
      <resources> elements, but downloadable resources can only be of four types - jar,image,extension
      and jnlp file. Therefore, client should never send request for class file itself.
      Current implementation is in the contradiction with the spec, either one or another
      should be fixed.

      ======================================================================

            rschmidtsunw Rene Schmidt (Inactive)
            aycsunw Ayc Ayc (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: