Bug 35660 - traceback in users wizard when opening a school admin
traceback in users wizard when opening a school admin
Status: CLOSED DUPLICATE of bug 41293
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2
Assigned To: Florian Best
Daniel Tröder
:
: 35200 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-20 11:50 CEST by Florian Best
Modified: 2016-06-28 18:28 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
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:
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 Florian Best univentionstaff 2014-08-20 11:50:45 CEST
A user underneath of cn=admins,cn=users,ou=$OU,$ldap_base is displayed as Teacher in the Users Wizard.
schoolldap.py:
def isTeacher(self, userDN): return userDN.endswith(self.teachers) or userDN.endswith(self.teachersAndStaff) or userDN.endswith(self.admins)

When opening the user to edit her a traceback is shown:
Die Ausführung des Kommandos schoolwizards/users/get ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 218, in execute
    func( request )
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/schoolldap.py", line 204, in wrapper_func
    return func( *args, **kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolwizards/__init__.py", line 118, in _decorated
    ret = func(self, request, *a, **kw)
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolwizards/__init__.py", line 177, in _get_obj
    obj = obj.from_dn(obj.old_dn, obj.school, ldap_user_read)
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/base.py", line 748, in from_dn
    udm_obj = udm_modules.lookup(cls._meta.udm_module, None, lo, filter=cls._meta.udm_filter, base=dn, scope='base', superordinate=superordinate)[0]
  File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 801, in lookup
    tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 2741, in lookup
    for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit):
  File "/usr/lib/pymodules/python2.6/univention/admin/uldap.py", line 347, in search
    raise univention.admin.uexceptions.noObject, _err2str(msg)
noObject: No such object

This happens because the backend does not work with real DNs but calculates the DN of that object using cn=teachers,… as parent container.
Comment 1 Florian Best univentionstaff 2016-05-10 07:57:59 CEST
*** Bug 35200 has been marked as a duplicate of this bug. ***
Comment 2 Florian Best univentionstaff 2016-06-13 12:07:23 CEST
This was fixed by Bug #41293.

*** This bug has been marked as a duplicate of bug 41293 ***
Comment 3 Daniel Tröder univentionstaff 2016-06-17 12:05:53 CEST
OK: duplicate of Bug #41293, which was solved in the scope of the release 4.1 R2.

If this should be solved for 3.2, please reopen.
Comment 4 Florian Best univentionstaff 2016-06-28 18:28:14 CEST
UCS@school 4.1 R2 has been released:
http://docs.software-univention.de/release-notes-ucsschool-4.1R2v1-de.pdf

If this error occurs again, please use "Clone This Bug".