Bug 40431 - UMC It's not possible to set a date as empty
UMC It's not possible to set a date as empty
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-8-errata
Assigned To: Florian Best
Stefan Gohmann
:
Depends on: 32321 40325
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-14 16:59 CET by Florian Best
Modified: 2016-01-20 14:01 CET (History)
8 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling, External feedback, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-01-14 16:59:00 CET
I forgot to build the package after svn r66556 so only a part of the fix is released :/.

+++ This bug was initially created as a clone of Bug #40325 +++

(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
Comment 1 Stefan Gohmann univentionstaff 2016-01-15 11:40:20 CET
(In reply to Florian Best from comment #0)
> I forgot to build the package after svn r66556 so only a part of the fix is
> released :/.

So, the account expiry has been fixed with Bug #40325. The traceback happens now with the birthday.
Comment 2 Stefan Gohmann univentionstaff 2016-01-19 15:38:58 CET
Tests: OK, it is now possible to remove the expiry date and the birthday.

YAML: OK
Comment 3 Janek Walkenhorst univentionstaff 2016-01-20 14:01:56 CET
<http://errata.software-univention.de/ucs/3.2/394.html>