[TRUEZIP-70] Using de.schlichtherle.io.File.renameTo(java.io.File) might bypass cached data structures in certain circumstances Created: 08/May/11  Updated: 08/May/11  Resolved: 08/May/11

Status: Closed
Project: TrueZIP
Component/s: TrueZIP File*
Affects Version/s: TrueZIP 6.8.3
Fix Version/s: TrueZIP 6.8.4

Type: Bug Priority: Minor
Reporter: Christian Schlichtherle Assignee: Christian Schlichtherle
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


When using de.schlichtherle.io.File.renameTo(java.io.File) to move a directory, then the cached data structures may get bypassed if all of the following apply:

  • The source directory is not an archive file or contained in an archive file.
  • The destination directory is not an archive file or contained in an archive file.
  • The source directory contains one or more archive files which have been accessed before using a de.schlichtherle.io.File with a de.schlichtherle.io.ArchiveDetector which recognized these archive files as virtual directories.

Comment by Christian Schlichtherle [ 08/May/11 ]

Another check has been added so that the recursive copy-then-delete operation is only skipped if all these conditions apply AND the archive detector to use when traversing the source directory tree is ArchiveDetector.NULL.

Generated at Sat Oct 10 17:20:21 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.