Bug 32321 - Traceback on Birthday validation
Traceback on Birthday validation
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.1-0-errata
Assigned To: Florian Best
Stefan Gohmann
:
Depends on:
Blocks: 40325 40431
  Show dependency treegraph
 
Reported: 2013-08-22 18:31 CEST by Dirk Wiesenthal
Modified: 2016-05-19 10:35 CEST (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): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2013-08-22 18:31:30 CEST
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 Florian Best univentionstaff 2015-05-19 14:32:34 CEST
Reported via traceback feedback, 4.0-2 errata193 (Walle)

Remark:
Entfernen eines gespeichertes Geburtsdatums und dann erneut speichern

"text" is (probably) None. used syntax class is "simple".

Die Ausführung des Kommandos udm/validate users/user ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/modules/__init__.py", line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "%PY2.7%/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 906, in _thread
    property_obj.syntax.parse(value)
  File "%PY2.7%/univention/admin/syntax.py", line 129, in parse
    if self.regex is None or self.regex.match( text ) is not None:
TypeError: expected string or buffer
Comment 2 Florian Best univentionstaff 2015-05-19 14:34:00 CEST
Bug #28995 is the same code which is affected.
Comment 3 Florian Best univentionstaff 2016-01-04 11:52:41 CET

*** This bug has been marked as a duplicate of bug 40325 ***
Comment 4 Florian Best univentionstaff 2016-01-04 12:46:28 CET
Using this bug to merge svn r66556 (Bug #40325) into UCS 4.1.
Comment 5 Florian Best univentionstaff 2016-01-04 13:40:29 CET
univention-directory-manager-modules (11.0.2-9):
r66560 | Bug #32321: allow None to be passed to the 'simple' syntax class.

univention-directory-manager-modules.yaml:
r66561 | YAML Bug #32321
Comment 6 Stefan Gohmann univentionstaff 2016-01-06 10:05:57 CET
Code review: OK

Tests: OK

YAML: OK
Comment 7 Janek Walkenhorst univentionstaff 2016-01-27 16:28:11 CET
<http://errata.software-univention.de/ucs/4.1/68.html>