CFZIP: wrong password leaves the zip file locked

Description

if a wrong password error is thrown (zipCrypto), I can't delete the zip file (until I cycle tomcat) as I guess the file handle isn't being closed?

lucee.runtime.exp.NativeException: invalid block type - Wrong Password?
at net.lingala.zip4j.io.InflaterInputStream.read(InflaterInputStream.java:97)
at net.lingala.zip4j.io.ZipInputStream.read(ZipInputStream.java:45)
at net.lingala.zip4j.io.ZipInputStream.read(ZipInputStream.java:41)
at lucee.commons.io.IOUtil.copy(IOUtil.java:292)
at lucee.commons.io.IOUtil.copy(IOUtil.java:75)
at lucee.commons.io.IOUtil.copy(IOUtil.java:161)
at lucee.runtime.op.IOImpl.copy(IOImpl.java:145)
at org.lucee.extension.zip.tag.Zip.actionUnzip(Zip.java:527)
at org.lucee.extension.zip.tag.Zip.doEndTag(Zip.java:783)
at test.zip_cfm$cf.call(/test/zip.cfm:3)

Environment

None

Status

Assignee

Michael Offner

Reporter

Zac Spitzer

Labels

Sprint

None

Fix versions

Affects versions

5.3.2.31

Priority

Critical
Configure