Univention Bugzilla – Full Text Bug Listing |
Summary: | listener/udm_extension.py doesn't cleanup when file changes | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UDM (Generic) | Assignee: | Johannes Keiser <keiser> |
Status: | CLOSED FIXED | QA Contact: | Florian Best <best> |
Severity: | normal | ||
Priority: | P5 | Flags: | best:
Patch_Available+
|
Version: | UCS 4.1 | ||
Target Milestone: | UCS 4.2-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=42658 | ||
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: | patch |
Description
Florian Best
2016-11-07 10:37:33 CET
Created attachment 8194 [details]
patch
(In reply to Florian Best from comment #1) > Created attachment 8194 [details] > patch Applied patch: r 80782 univention-directory-manager-modules (12.0.17-50) * Bug #42862: Applied patch from Florian Best - Fix listener/udm_syntax.py not cleaning up files YAML: r 80785 OK: test: service univention-directory-listener restart ucs-test 72_udm-extensions/24_update_packageversion ls /usr/share/pyshared/univention/admin/handlers/ucstest/ /usr/share/pyshared/univention/admin/hooks.d/ /usr/share/pyshared/univention/admin/syntax.d/ OK: YAML (adjusted in r80787) Traceback (most recent call last): File "/usr/lib/univention-directory-listener/system/udm_extension.py", line 104, in handler old_relative_filename = old.get('%sFilename' % objectclass)[0] TypeError: 'NoneType' object has no attribute '__getitem__' (In reply to Florian Best from comment #4) > Traceback (most recent call last): > File "/usr/lib/univention-directory-listener/system/udm_extension.py", > line 104, in handler > old_relative_filename = old.get('%sFilename' % objectclass)[0] > TypeError: 'NoneType' object has no attribute '__getitem__' r 80813 univention-directory-manager-modules (12.0.17-54) * Bug #42862: Applied patch from Florian Best - Prevent crash if old file does not exist OK: the tests work now again. I added another ucs-test case which tests the removal of renamed files: ucs-test (7.0.22-16): r80815 | Bug #42862: add test for renamed filenames causes old files to be removed |