Installing via lex endpoint uses incorrect file extension

Description

If you install a Lucee extension whose download URL points to a zip file instead of a lex file, the lex endpoint will no longer force the lex extension due to a change in that unexpectedly caused the file to be downloaded via the fileCopy() function instead of the progressable downloader.

Activity

Show:
Bobby Hartsfield
November 23, 2020, 10:30 PM

I honestly had no clue fileExists in Lucee would return true for valid URLs. I confirmed that but I was not able to get fileCopy to download the file. Instead, it would just error claiming the <url> file does not exists.

I’ve submitted a pull request to resolve this one (though it really feels like Lucee should not be treating URLs as files in fileExists).

Bobby Hartsfield
November 24, 2020, 2:07 AM

I closed the pull request. Brad was also working on a fix.

This might be a good option

if(!arrayFindNocase(["http","https","s3"], listfirst(package, ":")) && fileExists(package)) {

Fixed

Assignee

Brad Wood

Reporter

Brad Wood

Labels

None

Affects versions

Fix versions

Priority

Major

Components

Configure