Univention Bugzilla – Bug 40325
UMC It's not possible to set a date as empty
Last modified: 2016-01-14 16:59:00 CET
(I'm cloning this bug to get a fix for this issue in UCS 3.2) Once a date field is set (any date field, birthday, expiry date, etc.), one is not able to unset it again. This is happening to us in UCS 3.2 when trying to unset a date field in UMC. ---- Internal module error: An error occured during command processing. File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run tmp = self._function() File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 867, in _thread property_obj.syntax.parse( value ) File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 124, in parse if self.regex is None or self.regex.match( text ) is not None: TypeError: expected string or buffer ---- +++ This bug was initially created as a clone of Bug #32321 +++ When removing an previously set birthday: File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run tmp = self._function() File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 811, in _thread property_obj.syntax.parse( value ) File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 113, in parse if self.regex is None or self.regex.match( text ) is not None: TypeError: expected string or buffer
univention-directory-manager-modules (9.0.76-38): r66551 | Bug #40325: fix removal of date e.g. in account expiry date; backport of svn r56309, r56321 univention-directory-manager-modules.yaml: r66552 | YAML Bug #40325
*** Bug 32321 has been marked as a duplicate of this bug. ***
*** Bug 32504 has been marked as a duplicate of this bug. ***
To fix this also for the birthdate None must also be allowed by the "simple" syntax class: r66556 | Bug #40325: allow None to be passed to the 'simple' syntax class.
Code review: OK Tests: OK YAML: OK
<http://errata.software-univention.de/ucs/3.2/391.html>