Univention Bugzilla – Full Text Bug Listing |
Summary: | sysinfo/system: KeyError: 'mem' | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | Sysinfo | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Drees Dormann <dormann> |
Severity: | normal | ||
Priority: | P5 | CC: | gohmann, klaeser, walkenhorst |
Version: | UCS 3.2 | Flags: | best:
Patch_Available+
|
Target Milestone: | UCS 4.0-0-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
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: | patch |
The output parsing of univention-system-info could fail if multiple colons (':') were contained in the output. Therefore the keys 'mem' and 'Temp' may not be in the result dict. A followup error which was not in the patch has also been fixed → wrong reference was used, request → result. Fix: svn r56966 YAML: YAML: 2014-12-18-univention-system-info.yaml fixed YAML OK Reported again, 4.0-0 errata0 (Walle) Remark: njkvcnzJDVNSZ:NVDn |
Created attachment 6453 [details] patch Traceback: Die Ausführung des Kommandos sysinfo/system 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/univention/management/console/modules/sysinfo/__init__.py", line 119, in get_system_info if result['mem']: KeyError: 'mem' Attached a patch for correct error handling. Why was 'mem' no in univention-system-info output? Maybe it was but contained a ':' which leads to a ValueError which was swallowed.