tracker issue : CF-3041009

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

Bug 82214:Using the Admin API it's not possible to delete a single file or a list of files from the trusted cache when the file itself doesn't exist physically in the same location anymore

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Kai Koenig / Kai Koenig (Kai Koenig)

Created: 02/23/2010

Components: Administrator, Administrator Console

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 9,0,0,251028 / 273920

Priority/Frequency: Major / Unknown

Locale/System: English / Win All

Vote Count: 4

Problem:

Using the Admin API it's not possible to delete a single file or a list of files from the trusted cache when the file itself doesn't exist physically in the same location anymore. In those cases the _only_ way to get rid of the file in the trusted cache is clearing the complete trusted cache which can be a big hit.This is not a CF9 only issue but also hits CF 8 in any configuration I've tested it on Win and Mac. 
Method:

useAPI.cfm clears a particular file (change paths to make it work for your environment) from the trusted cache. That works fine as long as fikeintrustedcache.cfm exists. If the file is removed or renamed from the filesystem it can;t be cleared anymore by this code but can obviously still be called - it's in the trusted cache.<cfset adminPwd = "" /><cfset fileList = "/Applications/ColdFusion9/wwwroot/adminapitest/fileintrustedcache.cfm" /><cfinvoke component="cfide.adminapi.administrator" method="login" adminPassword="##"><cfinvoke component="cfide.adminapi.runtime" method="clearTrustedCache" templateList="#fileList#">
Result:

Following templates could not be deleted from the template cache because they do not exist on the file system:/Applications/ColdFusion9/wwwroot/adminapitest/fileintrustedcache.cfm.

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

Watson Bug ID:	3041009

External Customer Info:
External Company:  
External Customer Name: Kai Koenig
External Customer Email: 655D351945CACC94992016B7
External Test Config: 02/23/2010

Attachments:

Comments: