tracker issue : CF-3336302

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

using functions of an included file makes coldfusion ignore imports

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Jan Verschueren / Jan Verschueren (Jan Verschueren)

Created: 09/25/2012

Components: Language, CF Component

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Windows 7 SP1 64-bit

Vote Count: 3

Duplicate ID:	CF-3288035

Problem Description:
When you call a function of a previously included (cfinclude) .cfm file, all the coldfusion imports (cfimport) that have happened at this point are forgotten.

Steps to Reproduce:

(i used cfscript)
create a .cfm file with a function in it
create a .cfc component
create a third .cfm or .cfc file
include the first .cfm file in it
import the component in it
call the function from the included .cfm file
try to create a new instance of the imported component

Or extract the archive in the attachment and run index.cfm

Actual Result:

Could not find the ColdFusion component or interface <Component name>

Expected Result:
No Errors

Any Workarounds:

Use the complete relative path of the component or a path starting from a coldfusion mapping to create an instance of the component.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3336302

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Jan Verschueren
External Customer Email:  
External Test Config: My Hardware and Environment details:



Server Product	 ColdFusion

Version	 ColdFusion 10,282462

Edition	 Developer  

Operating System	 Windows 7  

OS Version	 6.1  

Update Level	 /C:/ColdFusion10/cfusion/lib/updates/chf10000002.jar  

Adobe Driver Version	 4.1 (Build 0001)  





Server Product	 ColdFusion

Version	 9,0,0,251028  

Edition	 Developer  

Operating System	 Windows 7  

OS Version	 6.1  

Adobe Driver Version	 4.0 (Build 0005)

Attachments:

  1. September 25, 2012 00:00:00: 1_include_import_bug.zip

Comments:

Others could reproduce. See http://stackoverflow.com/questions/12565731/using-functions-of-an-included-file-makes-coldfusion-forget-imports-is-this-nor#comment16934033_12565731
Comment by External U.
17949 | September 25, 2012 02:06:09 AM GMT
This is related to bug report #CF-3288035
Comment by External U.
17950 | September 25, 2012 04:58:15 AM GMT
As Jan said in the notes: https://bugbase.adobe.com/index.cfm?event=bug&id=CF-3288035 Produces a bunch of hard to understand behaviour, please fix!
Vote by External U.
17951 | September 25, 2012 05:08:53 AM GMT
I can also replicate this on CF9.0.1 and CF10, but NOT on CF9.0.2.
Vote by External U.
17952 | September 25, 2012 05:31:04 AM GMT
Also verified on x64 Win7 CF10 Update 2
Vote by External U.
17953 | September 25, 2012 09:02:58 AM GMT