Univention Bugzilla – Bug 43396
Traceback: containers/cn.pathKeys not initialized
Last modified: 2017-07-05 13:06:35 CEST
Created attachment 8367 [details] Make PATHS static - modified nowhere and no need to give each instance a copy import univention.admin.uldap as l import univention.admin.handlers.container.cn as cn lo, po = l.getAdminConnection() o = cn.object(None, lo, po) # o.open() is missing here (by accident) o['name'] = 'test' o.create() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 306, in create return self._create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 761, in _create self._ldap_post_create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/container/cn.py", line 238, in _ldap_post_create for i in range(0, len(self.pathKeys)): AttributeError: 'object' object has no attribute 'pathKeys'
(In reply to Philipp Hahn from comment #0) > Created attachment 8367 [details] > Make PATHS static - modified nowhere and no need to give each instance a copy > > import univention.admin.uldap as l > import univention.admin.handlers.container.cn as cn > lo, po = l.getAdminConnection() > o = cn.object(None, lo, po) > # o.open() is missing here (by accident) > o['name'] = 'test' > o.create() > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", > line 306, in create > return self._create() > File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", > line 761, in _create > self._ldap_post_create() > File > "/usr/lib/pymodules/python2.7/univention/admin/handlers/container/cn.py", > line 238, in _ldap_post_create > for i in range(0, len(self.pathKeys)): > AttributeError: 'object' object has no attribute 'pathKeys' Applied patch: r 80788 univention-directory-manager-modules (12.0.17-51) * Bug #43396: Applied patch from Philipp Hahn - Make PATHS static YAML: r 80790
Created attachment 8992 [details] patch
REOPEN: the patch introduced an error in the detection of the currently set default containers. Attached a fix for this.
(In reply to Florian Best from comment #2) > Created attachment 8992 [details] > patch Applied patch: r 80793 univention-directory-manager-modules (12.0.17-52) * Bug #43396: Applied additional patch from Florian Best - Make PATHS static
OK: container/ou OK: container/cn OK: create OK: removal OK: modify
<http://errata.software-univention.de/ucs/4.2/79.html>