Customtag does not set caller Scope

Description

We have Customtags which use the Caller Scope to set Variables in the Caller Template:

Customtag testtemplate:

<cfset caller.myvar = true>
The Template calls the testtemplate with:

<cf_testtemplate>

<cfoutput>#variables.myvar#</cfoutput>

Lucee throws an error:
key [MYVAR] doesn't exist

Interestingly if I place the customtag in the same directory as the template is located. Caller Variable is set. It only happens when the called customtag is located in an additional Ressource.

Environment

None

Activity

Oliver Neumann 27 April 2017 at 14:43

Yes, can be rejected,

Pothys - MitrahSoft 26 April 2017 at 05:55

So shall i reject this ticket?

Oliver Neumann 25 April 2017 at 09:09

as I mentioned in my comments. If a Component (.cfc) is found in a subdirectory Lucee might call this as a component. As this is Default filter Lucee uses in Administrator setting, while Migrating from ACF to Lucee, this might be a trap.
Generally Issue can be closed.

Pothys - MitrahSoft 24 April 2017 at 15:05

Hi
I've analyzed this ticket a lot & I couldn't able to reproduce the issue. caller scope in custom tag template, were working fine in custom tag calling pages. I tested with custom tag template placed in same folder & away from the directory, everything working as expected. Can you provide me some more details to reproduce the issue.

Oliver Neumann 21 April 2017 at 07:48

As ACF does not recorgnize CFC as Customtags it would be better to have *.cfm, *.cfml as the standard pattern also in LUCEE for the searchpath of ColdFusion Templates.

Cannot Reproduce

Details

Assignee

Reporter

Priority

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 20 April 2017 at 12:59
Updated 28 April 2017 at 04:28
Resolved 28 April 2017 at 04:28