Error extracting bundled jars forces download

Description

The CFMLEngineFactory uses File.renameTo to move an extracted bundle from the system temp directory (java.io.tmpdir defaults to /tmp) to the Lucee server bundles directory.

https://github.com/lucee/Lucee/blob/5.3.4/loader/src/main/java/lucee/loader/engine/CFMLEngineFactory.java#L800

The problem is on Linux, specifically on systems where the tmp directory lives on a different partition, Java's file rename does not move the file.

The effect is that no matter what, all bundles are always downloaded from releases.lucee.org. This prevents startup if the server in question is firewalled from that endpoint. It also causes unnecessary load on the server endpoints as the correct versions are already bundled into the loader jar.

Either the jars should be extracted directly to the server bundles directory, or use Files.move:

Environment

Fedora Linux

Activity

Show:
Michael Offner
November 18, 2019, 7:24 PM

Michael Offner
November 18, 2019, 7:28 PM

Fixed

Assignee

Unassigned

Reporter

Jesse Shaffer

Priority

Major

Labels

Fix versions

Affects versions

Configure