Title:
[ANeff] Bug for: cacheRemove(cacheGetAllIds()) throws attribute validation exception
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 11/01/2014
Components: Caching
Versions: 11.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Very few users will encounter
Locale/System: English / Win All
Vote Count: 0
In CF11, cacheRemove()'s IDs parameter will also accept an array but won't accept cacheGetAllIDs()'s result array.
Repro:
<cfscript>
arr1 = cacheGetAllIDs();
arr2 = listToArray(arrayToList(cacheGetAllIDs()));
if(arr1.equals(arr2)) {
cacheRemove(arr1);//throws exception "Attribute validation error for the CACHEREMOVE function"
}
</cfscript>
Workarounds:
<cfscript>
cacheRemoveAll();//works
cacheRemove(arrayToList(cacheGetAllIDs()));//works
cacheRemove(listToArray(arrayToList(cacheGetAllIDs())));//works
</cfscript>
Verified in 11.0.0.289822 and 11.0.03.291742.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3846185
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: