Bug 32504 - Account expiry date cannot be removed
Account expiry date cannot be removed
Status: RESOLVED DUPLICATE of bug 40325
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 3.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-06 09:34 CEST by Kevin Dominik Korte
Modified: 2016-01-04 11:54 CET (History)
4 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): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***