tracker issue : CF-3041807

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

Bug 83654:Summary: CFCATCH struct seems to be put in the VARIABLES scope, not the VAR scopeConsider the code in the repro case

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 07/25/2010

Components: Language, Tags

Versions: 10.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 280065

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 32

Problem:

Summary: CFCATCH struct seems to be put in the VARIABLES scope, not the VAR scopeConsider the code in the repro case.When I run this, the VARs dump has ARGUMENTS and THIS in it.  The variables dump has the CFCATCH (and THIS and F()).However if I uncomment the <cfset var cfcatch = "">, I get an error on the <cfcatch> line because CFCATCH is already declared:    Quote:    Cannot declare local variable CFCATCH twice.But it doesn’t actually seem to BE a local variable. I know it should be (when was this fixed...?  CFMX7?).This was running on CF8.0.1.  If I run it on CF9 and change the VAR declaration to local.cfcatch, then I do get a CFCATCH variable in the local scope, but it’s not the one that <cfcatch> populates.What’s going on here?-- Adam
Method:

<!--- caller.cfm ---><cfset o = createObject("component", "CfCatchInScope")> <cfset o.f()><!--- CfCatchInScope.cfc ---><cfcomponent>    <cffunction name="f">        <!---<cfset var cfcatch = "">--->        <cftry>            <cfset i = j><!--- errors --->            <cfcatch>                <cfdump var="#getPageContext().getActiveFunctionLocalScope()#" label="VARs">                <cfdump var="#variables#" label="variables">                <cfabort>            </cfcatch>        </cftry>    </cffunction></cfcomponent>
Result:

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

Watson Bug ID:	3041807

External Customer Info:
External Company:  
External Customer Name: Adam Cameron
External Customer Email: 17EB1A7649DA54C7992015A9
External Test Config: 07/25/2010

Attachments:

Comments:

This should be fixed ASAP.
Vote by External U.
21579 | November 11, 2011 12:45:20 AM GMT
This is a security leak as well as a thread safety issue
Vote by External U.
21580 | November 11, 2011 12:45:22 AM GMT
This bug has been voted..
Vote by External U.
21581 | November 11, 2011 12:45:23 AM GMT
This bug has been voted..
Vote by External U.
21582 | November 11, 2011 12:45:24 AM GMT
Again please also fix on cf8.
Vote by External U.
21583 | November 11, 2011 12:45:26 AM GMT
Detailed information and steps to reproduce the error are located at this blog entry: http://www.codersrevolution.com/index.cfm/2011/1/18/ColdFusions-Catch-Struct-Not-Locally-Varred?adminview=true
Vote by External U.
21584 | November 11, 2011 12:45:27 AM GMT
This bug has been voted..
Vote by External U.
21585 | November 11, 2011 12:45:28 AM GMT
This bug has been voted..
Vote by External U.
21586 | November 11, 2011 12:45:29 AM GMT
This bug has been voted..
Vote by External U.
21587 | November 11, 2011 12:45:31 AM GMT
This bug should be fixed ASAP.
Vote by External U.
21588 | November 11, 2011 12:45:32 AM GMT
This bug has been voted..
Vote by External U.
21589 | November 11, 2011 12:45:33 AM GMT
This bug has been voted..
Vote by External U.
21590 | November 11, 2011 12:45:34 AM GMT
This bug has been voted..
Vote by External U.
21591 | November 11, 2011 12:45:35 AM GMT
I am blown away that Adobe has been aware of this for 16 months and has not created a patch for it. How can this not be a big deal?
Vote by External U.
21592 | November 11, 2011 12:45:36 AM GMT
Please provide a fix for coldfusion 8. This is a potentially serious issue.
Vote by External U.
21593 | November 11, 2011 12:45:37 AM GMT
This bug has been voted..
Vote by External U.
21594 | November 11, 2011 12:45:38 AM GMT
This bug has been voted..
Vote by External U.
21595 | November 11, 2011 12:45:39 AM GMT
This bug has been voted..
Vote by External U.
21596 | November 11, 2011 12:45:40 AM GMT
This bug has been voted..
Vote by External U.
21597 | November 11, 2011 12:45:42 AM GMT
This bug has been voted..
Vote by External U.
21598 | November 11, 2011 12:45:44 AM GMT
This bug has been voted..
Vote by External U.
21599 | November 11, 2011 12:45:46 AM GMT
This bug has been voted..
Vote by External U.
21600 | November 11, 2011 12:45:48 AM GMT
This bug has been voted..
Vote by External U.
21601 | November 11, 2011 12:45:50 AM GMT
This bug has been voted..
Vote by External U.
21602 | November 11, 2011 12:45:52 AM GMT
This bug has been voted..
Vote by External U.
21603 | November 11, 2011 12:45:54 AM GMT
This is not good. Needs to be fixed.
Vote by External U.
21604 | November 11, 2011 12:45:56 AM GMT
This bug has been voted..
Vote by External U.
21605 | November 11, 2011 12:45:58 AM GMT
This bug has been voted..
Vote by External U.
21606 | November 11, 2011 12:46:00 AM GMT
Use catch extensively, should be fixed ASAP
Vote by External U.
21607 | November 11, 2011 12:46:02 AM GMT
This bug has been voted..
Vote by External U.
21608 | November 11, 2011 12:46:04 AM GMT
This bug has been voted..
Vote by External U.
21609 | November 11, 2011 12:46:06 AM GMT
We are hoping that Adobe actually pays attention to this Bug Tracker system... anybody home?
Vote by External U.
21610 | November 11, 2011 12:46:08 AM GMT
It seems this fix didn't apply to var-scoped assignments within cfcatch. Filed as #CF-3988540. Thanks!, -Aaron
Comment by External U.
21578 | May 15, 2015 12:56:20 AM GMT