Actions
Bug #12857
closedGeneric method "File_remove" can delete empty directories
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Very Small
Priority:
0
Name check:
Fix check:
Regression:
Description
if we build a dir like this:
mkdir /tmp/toRemove
Apply a directive based from the GM "file_absent" on the file "/tmp/toRemove", Rudder will remove the folder.
Now, if we make the same directory and add a file in it:
mkdir /tmp/toRemove touch /tmp/toRemove/afile
Rudder does not remove the directory but returns a compliant report.
This is most likely unwanted.
Updated by Alexis Mousset about 6 years ago
- Effort required set to Very Small
We can add a simple test before actual action.
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by Nicolas CHARLES about 6 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES about 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Alexis Mousset
- Pull Request set to https://github.com/Normation/ncf/pull/874
Updated by Rudder Quality Assistant about 6 years ago
- Assignee changed from Alexis Mousset to Nicolas CHARLES
Updated by Nicolas CHARLES about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset commit:d2556b48bf1f94828a624549bc684147abacfb6c.
Updated by Vincent MEMBRÉ about 6 years ago
- Translation missing: en.field_tag_list set to Next minor release
Updated by François ARMAND about 6 years ago
- Subject changed from File_absent GM can remove empty directories to Generic method "File_remove" can delete empty directories
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending release to Released
Updated by Alexis Mousset over 2 years ago
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods
Actions