Skip to main content

[truezip-issues] [JIRA] Created: (TRUEZIP-324) CLONE -TrueZip does not detect sub archives when Java's temp directory does not exist

  • From: "Christian Schlichtherle (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [truezip-issues] [JIRA] Created: (TRUEZIP-324) CLONE -TrueZip does not detect sub archives when Java's temp directory does not exist
  • Date: Tue, 25 Jun 2013 09:18:48 +0000 (UTC)
  • Auto-submitted: auto-generated

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

                 Key: TRUEZIP-324
                 URL: https://java.net/jira/browse/TRUEZIP-324
             Project: TrueZIP
          Issue Type: Bug
          Components: TrueZIP Driver FILE, TrueZIP Kernel
    Affects Versions: TrueZIP 7.7, TrueZIP 7.7.2
         Environment: Windows 7, 32 or 64 Bit, Java 1.6.0_26-32bit
            Reporter: palich
            Assignee: Christian Schlichtherle
            Priority: Minor
             Fix For: TrueZIP 7.7.3


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:
{code}
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());
{code}

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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[truezip-issues] [JIRA] Created: (TRUEZIP-324) CLONE -TrueZip does not detect sub archives when Java's temp directory does not exist

Christian Schlichtherle (JIRA) 06/25/2013
 
 
Close
loading
Please Confirm
Close