Fixed
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Zac Spitzer
Zac SpitzerPriority
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
Affects versions
Created 19 July 2024 at 21:14
Updated 31 December 2024 at 11:43
Resolved 19 August 2024 at 19:38
Found this while automating Lucee installler to determine and download in cfml, the latest java and tomcat versions,
which is blocking building the new installer for the 6.1.0.243 release with java 21
https://github.com/lucee/lucee-installer/actions/runs/10014301563/job/27683744904#step:8:325
[java] [script] 34: <br> [java] [script] 35: directoryDelete( "src-tomcat/linux/webapps", true );<br> [java] [script] "}],"ErrorCode":"0","type":"java.io.IOException","StackTrace":"lucee.runtime.exp.NativeException: chmod [40700] [/home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/temp/tmp-installer-C5A076CB-C60A-4E6E-B415328B6B21604B/apache-tomcat-9.0.91/conf] failed [java] [script] at lucee.commons.io.res.type.file.FileResource.setMode(FileResource.java:441) [java] [script] at lucee.commons.io.compress.CompressUtil.extractTar(CompressUtil.java:226) [java] [script] at lucee.commons.io.compress.CompressUtil.extractTGZ(CompressUtil.java:133) [java] [script] at lucee.commons.io.compress.CompressUtil.extract(CompressUtil.java:113) [java] [script] at lucee.commons.io.compress.CompressUtil.extract(CompressUtil.java:191) [java] [script] at lucee.runtime.functions.system.Extract.call(Extract.java:78) [java] [script] at download_latest_java_tomcat_cfm2070$cf.udfCall(/download-latest-java-tomcat.cfm:48)
https://github.com/lucee/Lucee/blob/6.1/core/src/main/java/lucee/commons/io/res/type/file/FileResource.java#L447
it’s actually shelling out to chmod
Runtime.getRuntime().exec(new String[] { "chmod", ModeUtil.toStringMode(mode), getPath() })
Happens while extracting https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.91/bin/apache-tomcat-9.0.91.tar.gz