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

Nightly:(CacheEnabled)Response is not normal when HttpURLConnection is open on any file in an applet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • deploy
    • b28
    • generic
    • generic
    • Verified

      JRE release : 1.6.0-b99
      Nightly Bundles location :
      /net/sqesvr-nfs/global/nfs/deployment5/pit_builds or
      /net/dig-dug.east/bigtmp/deployment/1.6.0/nightly/

      Problem Description:
      Whenever an HttpURLConnection is opened on any of the file inside an applet it get cached inside the deployment cache directory. HttpURLConnection.getResponseCode() is returning response code as -1 or 404( A document with that URL doesn't exist) instead of returning HTTP_OK. Everything is working fine if the cache is disabled

      Steps to reproduce:
      1) Install the latest nightly build and on unix register the browser with newly installed JRE
      2) Load the following applets
      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/cachingtest/http_file_header_cache.html

      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/cachingtest/http_image_header_cache.html

      3) If you notice following messages displayed on the java console then the bug is reproduced
      Response code: -1
      STATUS: http_image_header_cache(.jpg and .gif) FAILED

      or
      Response code: -1
      STATUS: http_file_header_cache(.class) FAILED

      On reloading you can notice that response code as 404 is getting returned
      Exit browser session
      4) Disable the cache through Java control panel and try loading the applets again

      You can notice that now both the applets are working fine

      With promoted builds(1.5,1.5.0_02 and 1.6.0) applets are working fine in both the conditions(enabled and disabled cache)




      ###@###.### 2005-2-24 20:33:22 GMT

            ngthomas Thomas Ng (Inactive)
            jijising Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: