Univention Bugzilla – Full Text Bug Listing |
Summary: | Traceback: containers/cn.pathKeys not initialized | ||
---|---|---|---|
Product: | UCS | Reporter: | Philipp Hahn <hahn> |
Component: | UDM (Generic) | Assignee: | Johannes Keiser <keiser> |
Status: | CLOSED FIXED | QA Contact: | Florian Best <best> |
Severity: | normal | ||
Priority: | P5 | CC: | best |
Version: | UCS 4.1 | Flags: | hahn:
Patch_Available+
|
Target Milestone: | UCS 4.2-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | http://forge.univention.org/bugzilla/show_bug.cgi?id=38110 | ||
What kind of report is it?: | Development Internal | 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): | ||
Max CVSS v3 score: | |||
Attachments: |
Make PATHS static - modified nowhere and no need to give each instance a copy
patch |
(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 |
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'