tracker issue : CF-4203062

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

cfcollection does not fully remove when using the 'delete' action in ColdFusion 2016

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): dakota c / ()

Created: 07/06/2018

Components: File Management

Versions: 2016

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: ColdFusion 2016 Update 6 /

Priority/Frequency: Normal / Most users will encounter

Locale/System: / Win 2012 Server x64

Vote Count: 0

Problem Description: The <cfcollection> tag is not removing the physical folder structure for a collection after using the "delete" action. It reports that the collection was removed, however the folder structure still remains which results in a "Collection already exists" error when attempting to recreate it. The system itself reports the file as in use by coldfusion when attempting to delete it manually. The cfusion user has full access to the solr home directory as well. 

Steps to Reproduce:

<cfcollection action="create"  collection="test123"/>
<cfcollection action="delete"  collection="test123"/>

Any Workarounds: 

Stopping ColdFusion and deleting the collection manually from the solr home directory.

Attachments:

Comments:

If you only want to re-build a collection then do not Delete and Create, but use <cfindex action="purge"...> and the use <cfindex....> to Rebuild the collection.
Comment by Clive M.
29262 | July 10, 2018 05:06:21 PM GMT
Duplicate of CF-4199994
Comment by Nitin K.
29952 | November 21, 2018 07:44:50 AM GMT