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 5.0
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: 2023-11-30 10:27 CET (History)
6 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: 2022012021000504, 2022010521000097, 2021041321000765, 2021092421000281, 2020073121000209, 2020061721000309, 2020061721000292, 2021012621000228, 2021050221000533, 2021033021000529, 2021101121000186, 2022100821000289, 2023062621000341, 2023042821000386
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.
Comment 4 Christina Scheinig univentionstaff 2021-11-01 10:57:00 CET
Happened again with 4.4-8 
Ticket #2021101121000186
Comment 5 Maximilian Janßen univentionstaff 2021-11-19 15:37:32 CET
Reported again:
Version: 4.4-8 errata1054 (Blumenthal) - UCS@school 4.4 v9
Comment 6 Maximilian Janßen univentionstaff 2022-01-06 11:03:03 CET
reported again:

Version: 5.0-1 errata177 - 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 124, in add
    ldap_user_write,
  File "%PY3%/univention/management/console/modules/schoolrooms/__init__.py", line 203, in _set_teacher_computers
    computer.modify(ldap_user_write)
  File "%PY3%/ucsschool/lib/models/base.py", line 687, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY3%/ucsschool/lib/models/computer.py", line 303, in modify_without_hooks
    self.create_network(lo)
  File "%PY3%/ucsschool/lib/models/computer.py", line 337, in create_network
    network.create(lo)
  File "%PY3%/ucsschool/lib/models/base.py", line 621, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY3%/ucsschool/lib/models/network.py", line 69, in create_without_hooks
    dns_reverse_zone.create(lo)
  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': ['Ein Subnetz für 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ändigen (mit führenden Nullen und ohne die ::-Ersetzung) IPv6-Adresse (z.B. "****:****:***" für "****:****:***::/44")']}

Role: domaincontroller_master
Comment 7 Mika Westphal univentionstaff 2022-10-28 11:32:12 CEST
Version: 4.4-9 errata1280 (Blumenthal) - UCS@school 4.4 v9

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 145, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/schoolrooms/__init__.py", line 158, in put
    ldap_user_write,
  File "%PY2.7%/univention/management/console/modules/schoolrooms/__init__.py", line 214, in _set_teacher_computers
    computer.modify(ldap_user_write)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 674, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 298, in modify_without_hooks
    self.create_network(lo)
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 332, in create_network
    network.create(lo)
  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/network.py", line 66, in create_without_hooks
    dns_reverse_zone.create(lo)
  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 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 8 Maximilian Janßen univentionstaff 2023-06-27 10:43:18 CEST
5.0-4 errata716 - UCS@school 5.0 v3
4.4-9 errata1371 (Blumenthal) - UCS@school 4.4 v9
2022120521000398 4.4-9 errata1347 (Blumenthal) - UCS@school 4.4 v9
2022092121000471 4.4-9 errata1279 (Blumenthal) - UCS@school 4.4 v9
2022081721000721 5.0-2 errata392 - UCS@school 5.0 v3
Comment 9 Maximilian Janßen univentionstaff 2023-07-06 18:23:32 CEST
2023032121000462
Version: 4.4-9 errata1371 (Blumenthal) - UCS@school 4.4 v9
Comment 10 Christina Scheinig univentionstaff 2023-07-11 10:52:23 CEST
Still happening with UCS Version: 5.0-4 errata726

Interner Server-Fehler in "/univention/command/schoolrooms/put".
ucsschool.lib.models.attributes.ValidationError: {'name': ['Ein Subnetz für 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ändigen (mit führenden Nullen und ohne die ::-Ersetzung) IPv6-Adresse (z.B. "2001:0db8:010" für "2001:db8:100::/44").']}
raise ValidationError(self.errors.copy())
File "/usr/lib/python3/dist-packages/ucsschool/lib/models/base.py", line 567, in create_without_hooks
success = self.create_without_hooks(lo, validate)
File "/usr/lib/python3/dist-packages/ucsschool/lib/models/base.py", line 552, in create
dns_reverse_zone.create(lo)
File "/usr/lib/python3/dist-packages/ucsschool/lib/models/network.py", line 69, in create_without_hooks
success = self.create_without_hooks(lo, validate)
File "/usr/lib/python3/dist-packages/ucsschool/lib/models/base.py", line 552, in create
network.create(lo)
File "/usr/lib/python3/dist-packages/ucsschool/lib/models/computer.py", line 342, in create_network
self.create_network(lo)
File "/usr/lib/python3/dist-packages/ucsschool/lib/models/computer.py", line 308, in modify_without_hooks
success = self.modify_without_hooks(lo, validate, move_if_necessary)
File "/usr/lib/python3/dist-packages/ucsschool/lib/models/base.py", line 619, in modify
computer.modify(ldap_user_write)
File "/usr/lib/python3/dist-packages/univention/management/console/modules/schoolrooms/__init__.py", line 205, in _set_teacher_computers
ldap_user_write,
File "/usr/lib/python3/dist-packages/univention/management/console/modules/schoolrooms/__init__.py", line 151, in put
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func
return function(self, request)
File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 186, in _response
function.__func__(self, request, *args, **kwargs)
File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 281, in execute
raise value
File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
six.reraise(etype, exc, etraceback)
File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 383, in __error_handling
Traceback (most recent call last):

Request: /univention/command/schoolrooms/put
Interner Server-Fehler in "/univention/command/schoolrooms/put".
Comment 12 Mika Westphal univentionstaff 2023-09-11 12:30:34 CEST
2023090821000226  5.0-4 errata798 - UCS@school 5.0 v4
2023090821000119  5.0-4 errata783 - UCS@school 5.0 v4
2023082821000351  5.0-4 errata788 - UCS@school 5.0 v3 Fehlermeldung tritt auf wenn Pc aus Computerraum entfernt wird.
2023080921000342  4.4-9 errata1448 (Blumenthal) - UCS@school 4.4 v9

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

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 387, 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 285, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 189, in _response
    return function(self, request)
  File "%PY3%/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func
    return func(*args, **kwargs)
  File "%PY3%/univention/management/console/modules/schoolrooms/__init__.py", line 151, in put
    ldap_user_write,
  File "%PY3%/univention/management/console/modules/schoolrooms/__init__.py", line 194, in _set_teacher_computers
    computer.modify(ldap_user_write)
  File "%PY3%/ucsschool/lib/models/base.py", line 619, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY3%/ucsschool/lib/models/computer.py", line 308, in modify_without_hooks
    self.create_network(lo)
  File "%PY3%/ucsschool/lib/models/computer.py", line 342, in create_network
    network.create(lo)
  File "%PY3%/ucsschool/lib/models/base.py", line 552, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY3%/ucsschool/lib/models/network.py", line 69, in create_without_hooks
    dns_reverse_zone.create(lo)
  File "%PY3%/ucsschool/lib/models/base.py", line 552, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY3%/ucsschool/lib/models/base.py", line 567, in create_without_hooks
    raise ValidationError(self.errors.copy())
ucsschool.lib.models.attributes.ValidationError: {'name': ['Ein Subnetz für 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ändigen (mit führenden Nullen und ohne die ::-Ersetzung) IPv6-Adresse (z.B. "2001:0db8:010" für "2001:db8:100::/44").']}
Comment 13 Mika Westphal univentionstaff 2023-09-18 11:13:47 CEST
2023091821000136  5.0-4 errata750 - UCS@school 5.0 v3

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

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 383, 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 281, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 186, in _response
    return function(self, request)
  File "%PY3%/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func
    return func(*args, **kwargs)
  File "%PY3%/univention/management/console/modules/schoolrooms/__init__.py", line 151, in put
    ldap_user_write,
  File "%PY3%/univention/management/console/modules/schoolrooms/__init__.py", line 205, in _set_teacher_computers
    computer.modify(ldap_user_write)
  File "%PY3%/ucsschool/lib/models/base.py", line 619, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY3%/ucsschool/lib/models/computer.py", line 308, in modify_without_hooks
    self.create_network(lo)
  File "%PY3%/ucsschool/lib/models/computer.py", line 342, in create_network
    network.create(lo)
  File "%PY3%/ucsschool/lib/models/base.py", line 552, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY3%/ucsschool/lib/models/network.py", line 69, in create_without_hooks
    dns_reverse_zone.create(lo)
  File "%PY3%/ucsschool/lib/models/base.py", line 552, in create
    success = self.create_without_hooks(lo, validate)
  File "%PY3%/ucsschool/lib/models/base.py", line 567, in create_without_hooks
    raise ValidationError(self.errors.copy())
ucsschool.lib.models.attributes.ValidationError: {'name': ['Ein Subnetz für 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ändigen (mit führenden Nullen und ohne die ::-Ersetzung) IPv6-Adresse (z.B. "2001:0db8:010" für "2001:db8:100::/44").']}