core icon indicating copy to clipboard operation
core copied to clipboard

Delete site fails when content is locked

Open oarrietadotcms opened this issue 10 years ago • 4 comments

Steps to reproduce:

  1. Create a new site, copy from demo.
  2. Go to the new site, in the site browser, /application/vtl/custom-fields/
  3. Lock youtube-search.vtl
  4. Go to Sites portlet and try to delete the new site.

oarrietadotcms avatar Aug 22 '16 20:08 oarrietadotcms

PR: https://github.com/dotCMS/core/pull/9623

oarrietadotcms avatar Aug 22 '16 20:08 oarrietadotcms

Issue is still happening. Followed previous steps to reproduce and but this time locked "vimeo-search.vtl" and I'm still getting the error: ERROR business.HostAPIImpl: Contentlet is locked: Unable to archive https://gist.github.com/shaydotcms/3a1d6c1ffb8588d74adbc0f483121a65

image

When I lock different files suchs as images, txt or videos and try to delete the site, it is successfully deleted but not when I lock vtl files.

I noticed that when I create a copy from an existing site, for instance demo, the new copy already contains locked files coming along with demo and I'm able to delete the recently created site, but if I lock a new vtl file, it fails deleting the new site.

shaydotcms avatar Aug 24 '16 14:08 shaydotcms

PR: https://github.com/dotCMS/core/pull/9651

oarrietadotcms avatar Aug 24 '16 19:08 oarrietadotcms

Fix is working Tested locking different contents such as .vtl, .html, images, videos, etc. Everything was properly deleted along with the site. master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox master-3.6 // Ubuntu 14.04.1 // Postgres 9.3.5 // Chrome

shaydotcms avatar Aug 29 '16 13:08 shaydotcms