lukas-kubik / winzipaes

Automatically exported from code.google.com/p/winzipaes
0 stars 0 forks source link

Decryption Issue occurs when files placed in sub directory #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

getting this Exception  "Exception in thread "main" 
java.io.FileNotFoundException: 
C:\adil\windiffziptest\winzipaes_src_20100806\WEB-INF\web.xml_TMP.zip (The 
system cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
" when decrypting zipfile which holds files in directories, one file is placed 
in root and other in subdirectory i.e :winzipaes_src_20100806\WEB-INF\web.xml.

also attaching the encrypted zip file. Thanks!!

Regards,

AB

Original issue reported on code.google.com by adilsa...@gmail.com on 18 Aug 2010 at 6:34

Attachments:

GoogleCodeExporter commented 9 years ago
Although I've now added an exception to AesZipFileDecrypter.extractEntry(), to 
better tell the caller what's wrong, it's actually not a defect, but a 
misusage: the AesZipFileDecrypter.getEntryList() returns both file and 
(non-decryptable) directory entries. TestIssues.issue21Decrypt() shows you how 
to prevent directories from being extracted.

Original comment by olaf.merkert on 18 Aug 2010 at 7:28