_internalRequest should accept relative and absolute paths to the current template folder

Description

we have the following pattern thru out our test cases, because you can’t just pass a relative path to the currentTemplate, i.e. a sub dir

https://github.com/lucee/Lucee/blob/6.0/test/tickets/LDEV2308.cfc

uri = createURI("LDEV2308"); local.result = _InternalRequest( template : "#uri#\j2ee-session\testThreadCookies.cfm" );
private string function createURI(string calledName){ var baseURI = "/test/#listLast(getDirectoryFromPath(getCurrentTemplatePath()),"\/")#/"; return baseURI&""&calledName; }

we should be able to do just

local.result = _InternalRequest( template : j2ee-session/testThreadCookies.cfm" );

Activity

Show:

Details

Assignee

Reporter

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

Priority

Created 17 June 2022 at 12:47
Updated 11 September 2023 at 07:36

Flag notifications