Bug 54164 - schoolrooms/put: AttributeError: 'NoneType' object has no attribute 'lower'
schoolrooms/put: AttributeError: 'NoneType' object has no attribute 'lower'
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC - Computer room
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-26 16:29 CET by Maximilian Janßen
Modified: 2021-11-26 16:29 CET (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021021021000505
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 Maximilian Janßen univentionstaff 2021-11-26 16:29:57 CET
Version: 4.4-7 errata863 (Blumenthal) - UCS@school 4.4 v6

Remark: Neuer Computer sollte in UCS@school einem Raum zugeordnet werden

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 140, 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 567, in modify
    success = self.modify_without_hooks(lo, validate, move_if_necessary)
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 268, in modify_without_hooks
    self.create_network(lo)
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 300, in create_network
    network = self.get_network()
  File "%PY2.7%/ucsschool/lib/models/computer.py", line 291, in get_network
    network_name = "%s-%s" % (self.school.lower(), ipv4_network.network)
AttributeError: 'NoneType' object has no attribute 'lower'

Role: domaincontroller_master