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 4.4
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: 2020-08-19 16:20 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:
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.']}