Impossible to create CF Mapping that points to Unix file system root ( / )

Description

Run this code in Linux (probably does the same on Mac, but I haven't tested)

This should create two CF mappings and dump them back out:

  • /etc_mapping which points to your /etc folder in the filesystem

  • /root_mapping which points to your / folder on the filesystem

However, the value of the root mapping is changed for some reason inside of Lucee and replaced with the path to the web root! Why is Lucee trying to expand that path but not the /etc path? Really, Lucee should not be touching the paths at all! It's up to me to supply the full absolute path and Lucee shouldn't be changing it.

This bug prevents CommandBox from being able to correctly work from the root folder in a Unix based OS. CommandBox relies on the creation of CF Mappings to be able to create relative paths on the fly that point to anywhere.

Environment

None

Assignee

Unassigned

Reporter

Brad Wood

Priority

New

Labels

Fix versions

None
Configure