Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Brad Wood
Brad WoodPriority
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
None
Created 23 September 2018 at 05:20
Updated 1 April 2019 at 20:31
Resolved 19 October 2018 at 14:20
When calling the getBaseTemplatePath() function from JSR-223 (in a CommandBox task runner, for example) an error is thrown:
I get that is technically correct but this makes some CFML modules impossible to use from the CLI if they use that method and there's no good way to test if the method will work or not other than just wrapping it in a try/catch. I noticed that the cgi.script_name is spoofed to just show /index.cfm from JSR-223. Can this function return the same spoofed path? Or, even better, return the first included file. For instance, all of CommandBox runs inside of a Bootstrap.cfm file which would be a logical response from that function.
Related bug in MockData.cfc library which won't work inside CommandBox currently:
https://github.com/Ortus-Solutions/MockDataCFC/pull/3/files#diff-b5c2bad68f4807cad3b65e1b4831d9afL112