Zipping empty folder errors (Regression)

Description

This is a regression.

If you try to zip a directory structure that contains an empty folder, an exception is thrown.

Attached

is a real life scenario in a CommandBox task runner that shows the issue though you can construct a much simpler example by just creating an empty folder and trying to zip it.

lucee.runtime.exp.NativeException: input parameters are null, cannot add folder to zip file at net.lingala.zip4j.core.ZipFile.addFolder(ZipFile.java:327) at net.lingala.zip4j.core.ZipFile.addFolder(ZipFile.java:309) at org.lucee.extension.zip.tag.Zip.addDir(Zip.java:673) at org.lucee.extension.zip.tag.Zip.addDir(Zip.java:664) at org.lucee.extension.zip.tag.Zip.addDir(Zip.java:664) at org.lucee.extension.zip.tag.Zip.addDir(Zip.java:664) at org.lucee.extension.zip.tag.Zip.actionZip(Zip.java:649) at org.lucee.extension.zip.tag.Zip.actionZip(Zip.java:571) at org.lucee.extension.zip.tag.Zip.doEndTag(Zip.java:787) at sandbox.lucee_zip192.task_cfc$cf.udfCall(/C_drive/sandbox/lucee zip/task.cfc:17) ... Caused by: net.lingala.zip4j.exception.ZipException: input parameters are null, cannot add folder to zip file

Environment

None

Attachments

1
  • 17 Jun 2019, 04:07 pm

Activity

Brad Wood 13 September 2019 at 13:53

Thanks for addressing this!

Travis Peters 26 August 2019 at 16:41

Could we get some traction on this?

Brad Wood 26 August 2019 at 16:38

This is probably the biggest blocker ticket still keeping CommandBox on Lucee 5.2.9.

Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 17 June 2019 at 16:08
Updated 8 May 2020 at 19:03
Resolved 23 September 2019 at 09:47