Bug 40431

Summary: UMC It's not possible to set a date as empty
Product: UCS Reporter: Florian Best <best>
Component: UMC (Generic)Assignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: best, gohmann, klaeser, korte, orrego, peichert, walkenhorst, wiesenthal
Version: UCS 3.2   
Target Milestone: UCS 3.2-8-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on: 32321, 40325    
Bug Blocks:    

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>