DownloadService Ignores Jar Resources When URL Contains Params

XMLWordPrintable

    • b105
    • x86
    • windows_xp

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Windows XP SP2

      A DESCRIPTION OF THE PROBLEM :
      When com.sun.jnlp.DownloadServiceImpl#loadResource is called with a url such as:
      http://foo/bar.jar?param=value
      The retrieved jar is not added to the JNLP classloader.

      Despite this being a valid URL, DownloadServiceImpl expects the URL to end with ".jar" (case-sensitive), and the presence of URL params causes the jar to be treated as a regular file in the cache.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Call com.sun.jnlp.DownloadServiceImpl#loadResource, passing URL that contains a URL param e.g.
      http://foo/bar.jar?param=value

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Jar should be loaded into JNLP classloader.
      ACTUAL -
      Jar is cached as regular file.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Avoid URL params. We were able to workaround by embedded parameters in the URL path. This will not be possible for some applications.

            Assignee:
            Andy Herrick (Inactive)
            Reporter:
            Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: