expandPath() does not work correctly with mapping/alias

Description

Apache:
Alias /bar "/var/www/html/foo"

Tomcat server.xml:
<Context path="/bar" docBase="/var/www/html/foo" />

Lucee Mapping:
/bar /var/www/html/foo/bar/

Script-URL:
http://localhost/bar/expandpath_test.cfm

Script-Code:
<cfdump var="#expandPath('/bar')#">

Result:
/var/www/html/foo/

EXPECTED Result (like Railo):
/var/www/html/foo/bar

Environment

CentOS, Apache2, Tomcat8, Lucee 4.5.1.022

Activity

Show:

Michael Offner 19 December 2016 at 12:56

Lucee and Railo handling expandPath the same way, mappings defined in admin always come first. This is expected behaviour.
we do not plan to change that behaviour, because it would break a lot ofexisting CFML code, in addition the current behaviour makes more sense.

Pothys - MitrahSoft 7 December 2016 at 15:18

Hi ,

I've analyzed this ticket & found that mappings are working similarly in railo 4.2.1.008/lucee 5.1.0.34/acf 11. If we've created alias/mapping in apache & tomcat & lucee for /bar with different paths, lucee mapping path will be displayed with expandPath(). Both lucee & railo uses mappings, created on lucee administrator or application.cfc, not the aliases created in apache/tomcat.

Won't Fix

Details

Assignee

Reporter

Priority

Labels

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

Affects versions

Created 9 July 2015 at 15:24
Updated 19 December 2016 at 12:56
Resolved 19 December 2016 at 12:56

Flag notifications