Univention Bugzilla – Full Text Bug Listing |
Summary: | log file not viewable in software update module | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UMC - Software update | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Richard Ulmer <ulmer> |
Severity: | normal | ||
Priority: | P5 | CC: | gohmann, klaeser |
Version: | UCS 4.1 | Keywords: | interim-1 |
Target Milestone: | UCS 4.2 | Flags: | best:
Patch_Available+
|
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=28070 | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 3: Simply Wrong: The implementation doesn't match the docu |
Who will be affected by this bug?: | 3: Will affect average number of installed domains | How will those affected feel about the bug?: | 2: A Pain – users won’t like this once they notice it |
User Pain: | 0.103 | 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: |
Description
Florian Best
2016-06-13 08:04:54 CEST
Reported again, 4.1-2 errata191 (Vahr) Remark: I just installed the latest updates, so version is 4.1-2 diff --git a/base/univention-updater/umc/python/updater/__init__.py b/base/univention-updater/umc/python/updater/__init__.py index 05f1236..d252a8b 100644 --- a/base/univention-updater/umc/python/updater/__init__.py +++ b/base/univention-updater/umc/python/updater/__init__.py @@ -488,7 +488,7 @@ def _logview(self, fname, count): if (count < 0): count += 1 else: - lines.append(line.rstrip()) + lines.append(line.rstrip().decode('utf-8', 'replace')) if (count > 0) and (len(lines) > count): lines.pop(0) except (IOError, OSError): Reproduce via: printf '\xe4' >> /var/log/univention/updater.log Patch applied, changelog added. univention-updater (12.0.1-1): r72900 | Bug #41539: non-UTF-8 characters don't cause a crash when viewing the logfile anymore Same problem in the join logview: univention-join (9.0.2-1): r76040 | Bug #41539: fix decoding error if logfile contains non-utf-8 character Fixed bug in univention-updater (4.2): Verified Fixed bug in univention-join (4.2): Verified Changelog: Ok UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug". |