TrueVFS
  1. TrueVFS
  2. TRUEVFS-107

CLONE -TrueZip does not detect sub archives when Java's temp directory does not exist

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: TrueVFS 0.10.2
    • Fix Version/s: TrueVFS 0.10.3
    • Component/s: TrueVFS Driver FILE
    • Labels:
      None
    • Environment:

      Windows 7, 32 or 64 Bit, Java 1.6.0_26-32bit

      Description

      If the system property java.io.tmpdir refers to a non-existing directory, TrueZip is not able to detect or access sub archives.

      The assertion from the following test excerpt fails:

      System.setProperty("java.io.tmpdir", "target/temp");
      TFile subArchive = new TFile("src/test/resources/archive.zip/files.zip");
      assertTrue("File must act like a directory: " + subArchive, file.isDirectory());
      

      I know that java.io.tmpdir should always exist. But the real world sometimes is different. At least TrueZip should test it and log a warning to the console. Otherwise, the reason for a failed archive detection is hard to find.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Christian Schlichtherle
            Reporter:
            palich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: