Univention Bugzilla – Bug 47199
UMC: Correctly set attribute is detected as unset
Last modified: 2019-03-07 16:06:04 CET
UCS 4.3-1e112 (maybe due to bug #46529) To reproduce: Deactivate a user account by setting the checkbox Account -> "Account is deactivated". The user is deactivated correctly (tested with kinit + ldapsearch) But now every time the user object is opened, there is a popup: The following empty properties were set to default values in the form. These values will be applied when saving. Account - Deactivation - Account is deactivated: true
Could you attach an LDIF of that user object here.
Created attachment 9560 [details] ldif of a user object affected by this bug
(In reply to Erik Damrose from comment #2) > Created attachment 9560 [details] > ldif of a user object affected by this bug looks like a valid LDAP object, I think. Maybe it's a javascript problem?
def hasChanged(self, key): if key == 'disabled' and inconsistentDisabledState(self.oldattr): return True
After the default values for properties have been set it is checked if the values have changed. If the values have changed the property is flagged as such and the popup in the frontend is shown: 'The following empty properties were set to default values in the form.' (In reply to Johannes Keiser from comment #4) > def hasChanged(self, key): > if key == 'disabled' and inconsistentDisabledState(self.oldattr): > return True from users/user.py: this does return true even if 'disabled' did not change and because of that the popup is shown.
*** Bug 47089 has been marked as a duplicate of this bug. ***
I copied the customer information from the duplicate bug
*** Bug 47438 has been marked as a duplicate of this bug. ***
e8213e2 Bug #47199: fix inconsistentDisabledState() in users/user.py 63a1031 Bug #47199: Debian changelog 395de71 Bug #47199: YAML - add entry 63b0d06 Bug #47199: Merge branch 'jkeiser/47199__inconsistent_disabled_state' into 4.3-1 f2033ba Bug #47199: YAML - update version Successful build Package: univention-directory-manager-modules Version: 13.0.21-32A~4.3.0.201808221741
Changeset: OK YAML: OK My tests: OK
<http://errata.software-univention.de/ucs/4.3/222.html>