tracker issue : CF-4204492

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

CFC - problem with component inheritance using a mapping

| View in Tracker

Status/Resolution/Reason: Open//

Reporter/Name(from Bugbase): Grzegorz G. / ()

Created: 06/10/2019

Components: CFComponent, Components

Versions: 2018

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2018.0.03.314033 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2016

Vote Count: 0

Problem Description:
ColdFusion can't find the component specified in "extends" attribute.

Steps to Reproduce:
Website - C:\inetpub\wwwroot\website\
Mobile website - C:\inetpub\wwwroot\website\mobile\ - another website in IIS pointing to that directory

Mapping added in CF Admin:
Logical name: app
Physical path: C:\inetpub\wwwroot\website\

Component 1 - C:\inetpub\wwwroot\website\cfc\comp.cfc
<cfcomponent name="comp">
</cfcomponent>

Component 2 - C:\inetpub\wwwroot\website\mobile\cfc\comp.cfc
<cfcomponent name="comp" extends="app.cfc.comp">
</cfcomponent>

CFM template - C:\inetbub\wwwroot\website\mobile\temp.cfm
<cfset comp = createObject('component', 'cfc.comp')>

Actual Result:
Error: ColdFusion could not find component or interface app.cfc.comp.

Expected Result:
ColdFusion just creates an object.

Any Workarounds:
Workaround #1:
1. Cleared component cache.
2. Modified and save CFC file.
3. The problem disappeared but went back after CF restart.

Workaround #2:
1. Disabled "Save class files" under "Cache" tab.
2. Cleared component and template cache.
3. The problem disappeared but went back after CF restart.

Workaround #3:
1. Disabled "Save class files", "Component cache", "Cache template in request" under "Cache" tab.
2. Cleared template and component cache.
3. The problem disappeared and didn't go back after a few CF restarts.

Attachments:

Comments: