core icon indicating copy to clipboard operation
core copied to clipboard

Index Snapshot zip file gets stored in dotsecure folder after it's uploaded from UI

Open shaydotcms opened this issue 10 years ago • 2 comments

Related to #9127 When you upload an index snapshot, the system keeps the .zip file inside “dotsecure" folder. In addition, it creates the repo folder defined in dotcms-config-cluster.properties (i.e.: es.path.repo=dotsecure/test_snapshots) which contains info about the index: image

Steps to Reproduce (for bugs)

1-Open file dotcms-config-cluster.properties and add the following property: es.path.repo=dotsecure/test_snapshots 2-Save changes 3-Startup dotcms instance 4-Login to dotcms 5-Navigate to System> Maintenance> Index tab. Right click over any index and select "Download Index Snapshot" 6-Delete the index you downloaded 7-Take a look locally to dotsecure folder so you can see what folders/files you currently have 8-Now click "Add Index" button and select Restore Index Snapshot to upload the same index 9-Go back to dotsecure folder, you will see the .zip file that you uploaded is created inside “dotsecure” folder, as long with the repo folder defined in dotcms-config-cluster.properties

Expected Behavior

System should not keep the .zip file that you uploaded neither keep the repo folder defined in dotcms-config-cluster.properties

Current Behavior

The index snapshot (.zip file) that you uploaded is created inside “dotsecure” folder, as long with the repo folder defined in dotcms-config-cluster.properties

Your Environment

Tested on branch "issue-9127-replace-current-index-backup-restore" // Ubuntu 14.04.1 // Postgres 9.3.5 // Firefox

shaydotcms avatar Oct 03 '16 16:10 shaydotcms

Fixed on #9127 by https://github.com/dotCMS/core/commit/f532ba4c572fa90f05dba6857dbbb04b080cdec8

maurizo avatar Oct 04 '16 20:10 maurizo

Passed QA, snapshot zip file doesn't get stored in dotsecure folder after it's uploaded from UI Tested in master-3.7 // Mac OS 10.10 // MySQL 5.6.23 // Firefox v45.0.1

shaydotcms avatar Oct 27 '16 15:10 shaydotcms