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

Regression in DiskCache.getTempCacheFile() causes IllegalArgumentException.

XMLWordPrintable

    • b06
    • generic, x86
    • generic, windows_xp

        The fix to: 6194024: Java Webstart incremental update fails with java.util.ZipException
        put causes an exception in DiskCache.getTempCacheFile() in rare instances.
        using the real filename of the resource in the cache, getTempCacheFile now calls
         
        File.createTempFile((new File(filename)).getName(), "tmp", dir);
        In the case of a resource who's url is a directory, the filename in the cache will only be 2 characters, and File.createTempFile requires that the first arg (prefix) be a String of at least three characters.

        If the url is of a file (not a directory) there is no problem.

        ###@###.### 2005-2-27 20:31:00 GMT

              ngthomas Thomas Ng (Inactive)
              herrick Andy Herrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: