Univention Bugzilla – Bug 41294
cancel() not called when creating object fails
Last modified: 2017-07-26 14:39:23 CEST
Created attachment 7668 [details]
If for whatever reason (e.g. object class violation) the creation of a UDM object fails the cancel() method is not called.
This results e.g. in some locks not to be released.
E.g. recreating a user where this error occurred causes that one needs to save it twice to remove the uid-lock because that wasn't cleaned up in the previous call.
Attached is a patch which fixes this.
*** Bug 35834 has been marked as a duplicate of this bug. ***
*** Bug 29684 has been marked as a duplicate of this bug. ***
*** Bug 28632 has been marked as a duplicate of this bug. ***
Created attachment 7778 [details]
*** This bug has been marked as a duplicate of bug 41711 ***
(In reply to Florian Best from comment #4)
> Created attachment 7778 [details]
> rebase patch.
* Bug #41294: Applied patch from Florian Best - Call cancel() when creation
of UDM object fails
YAML: r 80918
OK: error handling is correct now
OK: YAML (adjusted in r80987)