Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Brad Wood
Brad WoodPriority
Labels
Fix versions
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
None
Created 13 December 2018 at 20:20
Updated 19 February 2022 at 11:52
Test this on a *nix machine. Create a file and use chmod to mark it as executable
Then use Lucee's cfzip tag to create a zip out of that folder.
If you look inside the new zip file, you see the foo file is no longer executable. This is causing big issues in CommandBox where users may package executable binaries to be installed and the executable flags get dropped which makes the binaries non longer work once they're installed since move packages in and out of zip files.
I have tested on Adobe CF 2016 and it does NOT preserve the executable bits however I believe this is clearly a bug and I will be entering an Adobe ticket as well.
https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#setPosixFilePermissions(java.nio.file.Path,%20java.util.Set)
https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#getPosixFilePermissions(java.nio.file.Path,%20java.nio.file.LinkOption...)