Bug 51846 - schoolrooms/put: ValidationError: Name Subnetz
schoolrooms/put: ValidationError: Name Subnetz
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: 2020-08-19 16:20 CEST by Christian Castens
Modified: 2021-05-26 16:45 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 3: Will affect average number of 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.034
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020073121000209, 2020061721000309, 2020061721000292, 2021012621000228, 2021050221000533, 2021033021000529
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 Christian Castens univentionstaff 2020-08-19 16:20:25 CEST
Version: 4.4-5 errata686 (Blumenthal) - UCS@school 4.4 v5

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

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 141, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/schoolrooms/__init__.py", line 128, in put
    self._set_teacher_computers(group_props.get('computers', []), group_props.get('teacher_computers', []), ldap_user_read, ldap_user_write)
  File "%PY2.7%/univention/management/console/modules/schoolrooms/__init__.py", line 177, in _set_teacher_computers
    computer.modify(ldap_user_write)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 568, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 269, in modify_without_hooks
    self.create_network(lo)
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 303, in create_network
    network.create(lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 502, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY2.7%/ucsschool/lib/models/network.py", line 67, in create_without_hooks
    dns_reverse_zone.create(lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 502, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 517, in create_without_hooks
    raise ValidationError(self.errors.copy())
ValidationError: {'name': ['Ein Subnetz f\xc3\xbcr den Reverse Lookup besteht aus den ersten 1 bis 3 Oktetten einer IPv4-Adresse (z.B. "192.168.0") oder den ersten 1 bis 31 Nibbles
einer vollst\xc3\xa4ndigen (mit f\xc3\xbchrenden Nullen und ohne die ::-Ersetzung) IPv6-Adresse (z.B. "2001:0db8:010" f\xc3\xbcr "2001:db8:100::/44")']}

Role: domaincontroller_master

Errno: 6d2a62ba376feb0d6417f681959e6a9a
Comment 1 Christian Castens univentionstaff 2020-08-26 16:12:57 CEST
reported again:
Version: 4.4-4 errata624 (Blumenthal) - UCS@school 4.4 v5

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

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/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 123, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/schoolrooms/__init__.py", line 128, in put
    self._set_teacher_computers(group_props.get('computers', []), group_props.get('teacher_computers', []), ldap_user_read, ldap_user_write)
  File "%PY2.7%/univention/management/console/modules/schoolrooms/__init__.py", line 177, in _set_teacher_computers
    computer.modify(ldap_user_write)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 542, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 256, in modify_without_hooks
    self.create_network(lo)
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 288, in create_network
    network.create(lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 478, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY2.7%/ucsschool/lib/models/network.py", line 67, in create_without_hooks
    dns_reverse_zone.create(lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 478, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 493, in create_without_hooks
    raise ValidationError(self.errors.copy())
ValidationError: {'name': ['Ein Subnetz f\xc3\xbcr den Reverse Lookup besteht aus den ersten 1 bis 3 Oktetten einer IPv4-Adresse (z.B. "192.168.0") oder den ersten 1 bis 31 Nibbles
einer vollst\xc3\xa4ndigen (mit f\xc3\xbchrenden Nullen und ohne die ::-Ersetzung) IPv6-Adresse (z.B. "2001:0db8:010" f\xc3\xbcr "2001:db8:100::/44")']}

Role: domaincontroller_master
Comment 2 Christian Castens univentionstaff 2021-01-26 09:40:04 CET
reported again
Version: 4.4-7 errata873 (Blumenthal) - UCS@school 4.4 v8
Comment 3 Christina Scheinig univentionstaff 2021-05-05 11:04:07 CEST
Came up in a support Ticket with UCS: 4.4-8 errata966 ucsschool=4.4 v9
Does not seem to affect the function.