Bug 50234 - Traceback if an invalid computerroom name is specified
Traceback if an invalid computerroom name is specified
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC - Computer room administration
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-09-20 17:38 CEST by Sönke Schwardt-Krummrich
Modified: 2023-07-06 15:49 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021120121000236, 2023032921000233
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2019-09-20 17:38:19 CEST
Reproducible traceback/error in "Computerräume verwalten"/
"Manage Computerrooms":
Simply create a new room with invalid characters like "!" or "()"
→ "Kaputt!" or "Name(is)broken"

Interner Server-Fehler in "schoolrooms/add".
Request: schoolrooms/add

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 260, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "/usr/lib/pymodules/python2.7/ucsschool/lib/schoolldap.py", line 145, in wrapper_func
    return func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolrooms/__init__.py", line 111, in add
    success = room.create(ldap_user_write)
  File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 470, in create
    success = self.create_without_hooks(lo, validate)
  File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 485, in create_without_hooks
    raise ValidationError(self.errors.copy())
ValidationError: {'name': ['Ein Gruppenname muss mit einem Buchstaben, einer Zahl oder einem Unterstrich beginnen und enden. Dazwischen sind zus\xc3\xa4tzlich Freizeichen, Bindestriche und Punkte erlaubt.']}
Comment 1 Maximilian Janßen univentionstaff 2021-12-01 09:50:13 CET
Reported again:
(only line numbers changed)

Version: 5.0-0 errata159 - UCS@school 5.0 v1

Error: 
Interner Server-Fehler in "schoolrooms/add".
Request: schoolrooms/add

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 344, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/base.py", line 247, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY3%/ucsschool/lib/school_umc_ldap_connection.py", line 154, in wrapper_func
    return func(*args, **kwargs)
  File "%PY3%/univention/management/console/modules/schoolrooms/__init__.py", line 119, in add
    success = room.create(ldap_user_write)
  File "%PY3%/ucsschool/lib/models/base.py", line 621, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY3%/ucsschool/lib/models/base.py", line 636, in create_without_hooks
    raise ValidationError(self.errors.copy())
ucsschool.lib.models.attributes.ValidationError: {'name': ['Darf keine besonderen Zeichen enthalten']}

Role: domaincontroller_master
Comment 2 Maximilian Janßen univentionstaff 2023-07-06 15:49:28 CEST
Version: 4.4-9 errata1393 (Blumenthal) - UCS@school 4.4 v9

Error:
Interner Server-Fehler in "schoolrooms/add".
Request: schoolrooms/add

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/ucsschool/lib/school_umc_ldap_connection.py", line 145, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/schoolrooms/__init__.py", line 132, in add
    success = room.create(ldap_user_write)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 608, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 623, in create_without_hooks
    raise ValidationError(self.errors.copy())
ValidationError: {'name': ['Ein Gruppenname muss mit einem Buchstaben, einer Zahl oder einem Unterstrich beginnen und enden. Dazwischen sind zus\xc3\xa4tzlich Freizeichen,
Bindestriche und Punkte erlaubt.']}

Role: domaincontroller_master