Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)
Created: 03/09/2016
Components: CLI
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Normal / Few users will encounter
Locale/System: English / Mac All
Vote Count: 1
Problem Description:
Any per-application mappings declared in Application.cfc are ignored in CLI scripts.
Steps to Reproduce:
Create an Application.cfc with a per-application mapping, e.g.,
this.mappings["/test"] = expandPath("/");
In your CLI script, print expandPath("/test") using cli.writeln()
Actual Result:
It has the value of expandPath("/") & "test"
Expected Result:
It should have the value of expandPath("/")
(you can substitute any path you want for expandPath("/") in the mapping -- it won't work)
Any Workarounds:
None. This prevents any use of shared libraries of CFCs CLI scripts because there's no way to access anything outside the script's "webroot".
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126700
External Customer Info:
External Company: Railo US
External Customer Name: Sean Corfield
External Customer Email: SEAN@CORFIELD.ORG
External Test Config:
Attachments:
Comments: