[MGNLUI-2990] Not able to perform multi delete on folders in Security app Created: 11/Jun/14 Updated: 26/Feb/15 Resolved: 16/Jun/14 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | security app |
| Affects Version/s: | 5.2.5, 5.3 |
| Fix Version/s: | 5.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Eric Hechinger | Assignee: | Eric Hechinger |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
Go to security app
One folder will be deleted, the second not and an error message is displayed. Deletion works fine for a single element (folder or role) but not for multiple. |
| Comments |
| Comment by Christopher Zimmermann [ 11/Jun/14 ] |
|
Problem appears to be in DeleteEmptyFolderAction#onPreExecute. This methods purpose is to check if a folder has contents, and if it does to cancel the delete and display an error message. onPreExecute gets called on each item - (See AbstractMultiItemAction) - in turn as it is processed. But this method tries to scan ALL of the items each time - which is incorrect. It should only check the contents of the current item being processed. So: |