Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Immanuel Noel)
Created: 01/21/2015
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: 292980 /
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Mac 10 All,Win XP All
Vote Count: 1
Related Bugs:
CF-3845979 - Similar to
CF-3845979 - Similar to
Problem:
URL scope can't be emptied by calling structClear
This bug is an offset of the bug 3845979.
Method:
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(url, "product")>
<cfdump var="#url#" label="url scope">
structClear called and it returned: <cfoutput>#structClear(url)#</cfoutput>
</cfif>
<cfdump var="#url#" label="url scope">
structIsEmpty called. Is the form scope empty? <cfoutput>#structIsEmpty(url)#</cfoutput>
<form action="" method="get">
<input type="text" name="product" value="ColdFusion 11">
<input type="submit" name="submit" value="Test">
</form>
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:
The heading of cfdump should display "empty," and "structIsEmpty" should return "YES."
Workaround:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3924797
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: