Bug 54083 - schoolwizards/classes/query: Wrong objectClass: ** is not a school.
schoolwizards/classes/query: Wrong objectClass: ** is not a school.
Status: REOPENED
Product: UCS@school
Classification: Unclassified
Component: UMC
UCS@school 4.4
Other other
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-18 12:00 CET by Maximilian Janßen
Modified: 2023-06-20 15:16 CEST (History)
0 users

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?: 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.011
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022011121000469, 2022011021000489, 2021102021000221, 2021102021000212, 2021102021000231, 2023051521000489, 2023051221000378
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-18 12:00:06 CET
Version: 4.4-8 errata1020 (Blumenthal) - UCS@school 4.4 v9

Error: 
Interner Server-Fehler in "schoolwizards/classes/query (schoolwizards/classes)".
Request: schoolwizards/classes/query (schoolwizards/classes)

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%/univention/management/console/modules/schoolwizards/__init__.py", line 249, in _decorated
    ret = func(self, request, *a, **kw)
  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/schoolwizards/__init__.py", line 577, in get_classes
    return self._get_all(SchoolClass, school, request.options.get("filter"), ldap_user_read)
  File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 446, in _get_all
    schools = School.from_binddn(lo)
  File "%PY2.7%/ucsschool/lib/models/school.py", line 714, in from_binddn
    school = cls.from_dn(school_dn, None, lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 1154, in from_dn
    raise WrongObjectType(dn, cls)
WrongObjectType: Could not find object of type None with DN "Wrong objectClass: u'ou=ou-mitarbeiter,ou=ou-users,ou=MSF,dc=ad,dc=****,dc=de' is not a 'School'.".


**** is a name
Comment 1 Maximilian Janßen univentionstaff 2021-11-19 11:48:10 CET
Not the same traceback source, but its the exact same ldap-object and same issue with it:


Version: 4.4-8 errata1020 (Blumenthal) - UCS@school 4.4 v9

Error: 
Interner Server-Fehler in "computerroom/schools".
Request: computerroom/schools

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%/ucsschool/lib/school_umc_ldap_connection.py", line 145, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/ucsschool/lib/school_umc_base.py", line 127, in schools
    schools = School.from_binddn(ldap_user_read)
  File "%PY2.7%/ucsschool/lib/models/school.py", line 714, in from_binddn
    school = cls.from_dn(school_dn, None, lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 1154, in from_dn
    raise WrongObjectType(dn, cls)
WrongObjectType: Could not find object of type None with DN "Wrong objectClass: u'ou=ou-mitarbeiter,ou=ou-users,ou=MSF,dc=ad,dc=****,dc=de' is not a 'School'.".
Comment 2 Maximilian Janßen univentionstaff 2021-11-19 12:58:50 CET
Once again the exact same ldap object:



Version: 4.4-8 errata1020 (Blumenthal) - UCS@school 4.4 v9

Error: 
Interner Server-Fehler in "schoolusers/schools (student)".
Request: schoolusers/schools (student)

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%/ucsschool/lib/school_umc_ldap_connection.py", line 145, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/ucsschool/lib/school_umc_base.py", line 127, in schools
    schools = School.from_binddn(ldap_user_read)
  File "%PY2.7%/ucsschool/lib/models/school.py", line 714, in from_binddn
    school = cls.from_dn(school_dn, None, lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 1154, in from_dn
    raise WrongObjectType(dn, cls)
WrongObjectType: Could not find object of type None with DN "Wrong objectClass: u'ou=ou-mitarbeiter,ou=ou-users,ou=MSF,dc=ad,dc=****,dc=de' is not a 'School'.".

Role: domaincontroller_backup
Comment 3 Maximilian Janßen univentionstaff 2022-01-12 11:48:59 CET
reported again. i think its caused by a broken/wrong/.. object in this customers ldap (all the tracebacks are from the same school).

Version: 4.4-8 errata1020 (Blumenthal) - UCS@school 4.4 v9

Error: 
Interner Server-Fehler in "schoolusers/schools (teacher)".
Request: schoolusers/schools (teacher)

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%/ucsschool/lib/school_umc_ldap_connection.py", line 145, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/ucsschool/lib/school_umc_base.py", line 127, in schools
    schools = School.from_binddn(ldap_user_read)
  File "%PY2.7%/ucsschool/lib/models/school.py", line 714, in from_binddn
    school = cls.from_dn(school_dn, None, lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 1154, in from_dn
    raise WrongObjectType(dn, cls)
WrongObjectType: Could not find object of type None with DN "Wrong objectClass: u'ou=ou-mitarbeiter,ou=ou-users,ou=MSF,dc=ad,dc=****,dc=de' is not a 'School'.".

Role: domaincontroller_backup
Comment 4 Maximilian Janßen univentionstaff 2023-06-20 15:02:04 CEST
 Version: 4.4-9 errata1371 (Blumenthal) - UCS@school 4.4 v9

Error:
Interner Server-Fehler in "schoolusers/schools (student)".
Request: schoolusers/schools (student)

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%/ucsschool/lib/school_umc_ldap_connection.py", line 145, in wrapper_func
    return func(*args, **kwargs)
  File "%PY2.7%/ucsschool/lib/school_umc_base.py", line 127, in schools
    schools = School.from_binddn(ldap_user_read)
  File "%PY2.7%/ucsschool/lib/models/school.py", line 714, in from_binddn
    school = cls.from_dn(school_dn, None, lo)
  File "%PY2.7%/ucsschool/lib/models/base.py", line 1154, in from_dn
    raise WrongObjectType(dn, cls)
WrongObjectType: Could not find object of type None with DN "Wrong objectClass: 'ou=admins,ou=administration,dc=***,dc=***' is not a 'School'.".

Role: domaincontroller_backup