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

getCachedResource returns incorrect results for some versioned resources.

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      getCachedResource returns null versions also when requested a specific version.

      For a request http://localhost:8080/.* , 1.*,JAR
      It returns all the cached JARs from localhost:8080 with out version +
      for jar which has got multiple version only the matching ones . (ie, 1.0, 1.1 etc)

      By definition it should return only 1.* jar files .
      also:
      getCachedResources inconsistent behaviour with respect to version.

      Here is an example:
      Step1: javaws -uninstall
      Step2:
      Launch http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest//downloadService2/getCachedResource_ALL.jnlp

      Since Verions is not specified it should list only the items which doesnt have version - I am getting the expected behavior - Only 7 resources are listed.
      test.jar (1.0,2.1,2.1.1 and 2.0 ) are not listed.

      Now call this -
      Step1: javaws -uninstall
      Step2 : Launch http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest//downloadService2/getCachedResource_JAR.jnlp
      with null version.
      Expected resource is only 1 which is ds.jar.
      But here it is listing all jars (test.jar with 1.0,2.1,2.1.1 and 2.0).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              herrick Andy Herrick
              Reporter:
              rnairsunw Raghu Nair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: