tracker issue : CF-4206542

select a category, or use search below
(searches all categories and all time range)
Title:

cannot call certain functions on a component

| View in Tracker

Status/Resolution/Reason: To Track//PRNeedInfo

Reporter/Name(from Bugbase): Luis M. / ()

Created: 01/09/2020

Components: Language, CF Component

Versions: 2018

Failure Type:

Found In Build/Fixed In Build: latest /

Priority/Frequency: Normal /

Locale/System: / Linux All

Vote Count: 2

Problem Description:

We have in ColdBox a Base Test Case which has API testing capabilities. Basically it has several functions with the following names: get(), post(), put(), head(), options().

However, on a Component that inherits this base test case, we cannot call these methods:

var event = post( "hello" );
var event = put( "hello" );

Not even using the this scope it works

var event = this.post( "hello" );
var event = this.put( "hello" );

Actual Result:

The exception: entity has incorrect type for being called as a function. The symbol you provided is not the name of a function.

Expected Result:

This should totally work! Why is this not workin since ACF11!!

Any Workarounds:
It works in lucee

Attachments:

Comments:

Hi , We tried to reproduce this at our end but we were unable to do so by the steps provided in thebug. I have attached the code that I used to reproduce the bug . Can you send us a standalone repro case? Regards, Suchika
Comment by Suchika S.
33263 | March 06, 2020 12:26:29 PM GMT