Bug 44344 - Unhandled ValidationError when using invalid characters for computer room name
Unhandled ValidationError when using invalid characters for computer room name
Status: CLOSED DUPLICATE of bug 36763
Product: UCS@school
Classification: Unclassified
Component: UMC - Computer room administration
UCS@school 4.2
Other Linux
: P5 normal (vote)
: UCS@school 4.x
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-10 18:16 CEST by Eduard Mai
Modified: 2023-06-12 15:39 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
Enterprise Customer affected?:
School Customer affected?: Yes
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 Eduard Mai univentionstaff 2017-04-10 18:16:51 CEST
If invalid characters are used in a name for a computer room following traceback is displayed:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 249, 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 100, in add
    success = room.create(ldap_user_write)
  File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 427, in create
    success = self.create_without_hooks(lo, validate)
  File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 440, in create_without_hooks
    raise ValidationError(self.errors.copy())
ValidationError: {'name': ['Der Wert darf nur Zahlen, Buchstaben und Punkte enthalten.']}
 Die Ausführung des Kommandos schoolrooms/add ist fehlgeschlagen:
Comment 1 Florian Best univentionstaff 2017-04-21 16:36:39 CEST

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