Invalid mappings are ignored by expandpath

Description

Since we switched to lucee mapping first, an application mapping against a non existent folder is ignored, so a mapping for /logs on a Unix system expands to a root dir.

The example is for an application which creates a log directory on deploy, using expandpath and then directory create.

This breaks preside on a new install

Lucee used to always ignore an invalid mapping unless it existed when it gets defined, we changed that to to pick up an mapping once it exists recently

Since this change to respect Lucee mappings first this has become a problem

Environment

None

Activity

Zac Spitzer 
22 September 2023 at 08:11

confirmed it’s now working

Michael Offner 
18 September 2023 at 22:41

please give that version a try

Michael Offner 
18 September 2023 at 22:40

Michael Offner 
18 September 2023 at 22:24

Lucee 5 does also ignore them but in that case create a directory “/logs“ in the webroot.

Zac Spitzer 
18 September 2023 at 20:09
(edited)

odd one. passes on windows, fails on linux / gha

line 5 here is the directory create

Fixed

Details

Assignee

Reporter

Priority

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

Affects versions

Created 24 June 2023 at 09:37
Updated 22 September 2023 at 08:11
Resolved 18 September 2023 at 19:49