Bug 32504

Summary: Account expiry date cannot be removed
Product: UCS Reporter: Kevin Dominik Korte <korte>
Component: UMC - UsersAssignee: UMC maintainers <umc-maintainers>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: best, hahn, orrego, wiesenthal
Version: UCS 3.1   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: http://forge.univention.org/bugzilla/show_bug.cgi?id=32321
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): Usability
Max CVSS v3 score:

Description Kevin Dominik Korte univentionstaff 2013-09-06 09:34:47 CEST
The account expiry date, set in the account tab of the user module, cannot be removed. If the date is set empty, the following traceback is displayed upon saving the changes.

  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 1040, in parse
    if self._re_iso.match(text) != None:

TypeError: expected string or buffer


Reproduce:
Set account expiry date in the user module
save
set account expiry date empty
save
Comment 1 Philipp Hahn univentionstaff 2013-09-06 18:22:06 CEST

*** This bug has been marked as a duplicate of bug 25279 ***
Comment 2 Daniel Orrego univentionstaff 2015-12-01 14:36:06 CET
I think is better to reopen the bug instead of creating a clone of it.

This bug has been marked as duplicated of a bug that was fixed for UCS 4, but not for UCS 3.2 which is still under support.

We will need a backport of the fix in #25279 to UCS 3.2

This is the traceback when trying to save with an empty date (UMC, UCS 3.2-8):
----
  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
----
Comment 3 Florian Best univentionstaff 2016-01-04 11:54:03 CET

*** This bug has been marked as a duplicate of bug 40325 ***