tracker issue : CF-3845979

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

form scope can't be emptied by calling structClear

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Shigeo Kubota / Shigeo Kubota (CF-AXL)

Created: 10/31/2014

Components: Language

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final / CF11 Update5

Priority/Frequency: Minor / Unknown

Locale/System: English / Win 2012 Server x64

Vote Count: 3

Listed in the version Issues Fixed doc
Related Bugs:
CF-3924797 - Similar to
CF-3924797 - Similar to

Problem Description:
form scope can't be emptied by calling structClear.

Steps to Reproduce:
1) Run the code below and make sure the form scope is empty initially.
2) Click the "Test" button.
3) See the result.

<cfif structKeyExists(form, "submit")>
  <cfdump var="#form#" label="form scope">
  structClear called and it returned: <cfoutput>#structClear(form)#</cfoutput>

<cfdump var="#form#" label="form scope">
structIsEmpty called. Is the form scope empty? <cfoutput>#structIsEmpty(form)#</cfoutput>

<form action="" method="post">
  <input type="text" name="product" value="ColdFusion 11">
  <input type="submit" name="submit" value="Test">

Actual Result:
After calling "structClear" and the function returned "YES," the heading of cfdump didn't display "empty," and when calling "structIsEmpty," it returned "NO."

Expected Result:
The heading of cfdump should display "empty," and "structIsEmpty" should return "YES."

Any Workarounds:

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

Watson Bug ID:	3845979

External Customer Info:
External Company:  
External Customer Name: CF-AXL
External Customer Email:  
External Test Config: My Hardware and Environment details:

ColdFusion 11 with Update 2 (11,0,02,291725) on IIS 8.5

Windows Server 2012 R2


  1. October 31, 2014 00:00:00: 1_screenshot.png


Attached a screenshot
Comment by External U.
10346 | October 31, 2014 09:04:17 AM GMT
+1. This seems to be a regression caused in CF10. It works fine in CF9; broken in CF10 & CF11.
Vote by External U.
10355 | October 31, 2014 09:09:20 AM GMT
+1, fails for me on CF10. If you add in <cfdump var=#structkeyarray(form)#>, above the structisempty(), it returns 3 Furthermore, if you remove name="submit" from the submit button and run the same code, the form scope doesn't 'clears' AND structkeyarray() returns 2
Vote by External U.
10356 | October 31, 2014 09:33:40 AM GMT
+1 - Same issue for URL scope
Vote by External U.
10357 | November 26, 2014 05:59:45 AM GMT
I see this is marked "Fixed". Was same issue fixed for URL scope? Repro: <cfdump var="#url#" label="url scope"> structClear called and it returned: <cfoutput>#structClear(url)#</cfoutput> <cfdump var="#url#" label="url scope"> structIsEmpty called. Is the url scope empty? <cfoutput>#structIsEmpty(url)#</cfoutput> Just run that w/ a URL parameter to see same issue. Thanks!, -Aaron
Comment by External U.
10347 | November 26, 2014 06:01:34 AM GMT
This is fixed for form scope. I have checked all other scopes now and you are right about url scope. We will fix that. You are free to log a bug for that if you like.
Comment by Himavanth R.
10348 | November 27, 2014 12:23:21 AM GMT
This bug has been fixed. The issue though, still exists in the URL scopes. This is being tracked as part of a separate bug and will be fixed.
Comment by Immanuel N.
10349 | January 21, 2015 06:33:31 AM GMT
Hi Himavanth and Immanuel, Thanks for looking into the URL issue. What is the ticket number? As a reminder to all Adobe staff, when you add comments on tickets we are not informed. Only time we are informed of a ticket change is if a non-Adobe person comments on the ticket -or- if the ticket's status changes. Thus, this is the first time I've seen Himavanth's comment from November. B/c the ticket's status must've had some change today. Basically, if someone replies here w/ the ticket# for the URL issue, I won't know unless I keep coming back to view this ticket. I've filed hundreds of CF tickets, so the chances that I'm monitoring each ticket is slim to zilch. It's always interesting to see engineers asking for feedback on tickets, and then the person who filed the ticket never replies (b/c they were never notified that an Adobe staff had added a comment), and then the tickets are subsequently closed b/c no feedback was provided. Thanks!, -Aaron
Comment by External U.
10350 | January 21, 2015 05:19:42 PM GMT
@Aaron, Bug CF-3924797 has been raised to track the issue with clearing URL scopes. We are tracking the issue with the notifier system. Thanks for bringing this up Aaron.
Comment by Immanuel N.
10351 | January 22, 2015 03:43:25 AM GMT
Hi Immanuel, Thanks very much for the ticket#, and I've voted. You're welcome, and -interestingly- I did get a notification ~10 minutes ago about this ticket here. Thanks!, -Aaron
Comment by External U.
10352 | January 22, 2015 03:57:31 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
10353 | February 20, 2015 09:26:54 AM GMT
Verified this is fixed (for form scope) in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
10354 | November 21, 2015 09:10:06 PM GMT