Bug 40737

Summary: udm remove is missing --ignore_not_exists
Product: UCS Reporter: Florian Best <best>
Component: UDM - CLIAssignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Johannes Keiser <keiser>
Severity: normal    
Priority: P5 Flags: best: Patch_Available+
Version: UCS 4.2   
Target Milestone: UCS 4.2-1-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=32528
What kind of report is it?: Bug Report What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046 Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Florian Best univentionstaff 2016-02-19 10:33:53 CET
udm remove is missing --ignore_not_exists. Otherwise in unjoinscripts we cannot really use "|| die".
Comment 1 Florian Best univentionstaff 2016-09-09 12:19:49 CEST
I would have find it helpful to have this during the Upgrade to UCS 4.2.
Comment 2 Florian Best univentionstaff 2017-07-04 14:59:01 CEST
I added that option.

ucs-test (7.0.22-16):
r80821 | Bug #40737: add udm remove --ignore_not_exists

univention-directory-manager-modules (12.0.17-56):
r80821 | Bug #40737: add udm remove --ignore_not_exists

univention-directory-manager-modules.yaml:
r80822 | YAML Bug #40737
Comment 3 Florian Best univentionstaff 2017-07-04 15:08:00 CEST
# udm users/user remove --ignore_not_exists                                                                                                                                                                                       
E: dn or filter needed
# udm users/user remove --ignore_not_exists --dn uid=asdfasdfasdfasdfasdfa,dc=school,dc=local
Object not found: uid=asdfasdfasdfasdfasdfa,dc=school,dc=local
# echo $?
0
# udm users/user remove --ignore_not_exists --filter uid=asdfasdfasdfasdfasdfa                                                                                                                                                    
Object not found: uid=asdfasdfasdfasdfasdfa
# udm users/user remove --dn uid=asdfasdfasdfasdfasdfa,dc=school,dc=local                                                                                                                                                         
E: object not found
# echo $?
3
Comment 4 Johannes Keiser univentionstaff 2017-07-04 15:45:46 CEST
OK remove operation does not fail when --ingore_not_exists is used and dn or
   filter is specified.

YAML: OK
-> verified
Comment 5 Janek Walkenhorst univentionstaff 2017-07-05 13:06:23 CEST
<http://errata.software-univention.de/ucs/4.2/79.html>