Bug 22927 - UMC2: Systeminformationen
UMC2: Systeminformationen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0 - RC
Assigned To: Jascha Geerds
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-28 18:07 CEST by Andreas Büsching
Modified: 2011-12-13 15:49 CET (History)
3 users (show)

See Also:
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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Büsching univentionstaff 2011-06-28 18:07:36 CEST
Das sysinfo-Modul muss für die neue Generation von UMC angepasst werden
Comment 1 Stefan Gohmann univentionstaff 2011-09-17 15:58:49 CEST
Das Paket fehlt derzeit auch noch auf der DVD.
Comment 2 Jascha Geerds univentionstaff 2011-11-17 13:52:06 CET
Das Modul wurde übernommen - univention-management-console-module-sysinfo
Comment 3 Stefan Gohmann univentionstaff 2011-11-18 06:30:40 CET
Das Modul sollte per Default mit installiert werden. Am einfachsten in univention-management-console eine Dependency hinzufügen.
Comment 4 Jascha Geerds univentionstaff 2011-11-18 13:42:45 CET
Paket wurde zu den Dependencies hinzugefügt. Des Weiteren habe ich die ACLs für den root-Benutzer angepasst.
Comment 5 Stefan Gohmann univentionstaff 2011-11-25 19:25:49 CET
Wenn ich einen längeren Kommentar mit Umlauten eingebe, dann bekomme ich einen Traceback:

Die Anfrage konnte nicht bearbeitet werden.

Fehlernachricht des Servers:

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 97, in execute
func( request )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/sysinfo/__init__.py', line 103, in get_system_info
(exitcode, stdout, stderr, ) = self._call(SYSTEM_INFO_CMD)
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/sysinfo/__init__.py', line 63, in _call
stderr=subprocess.PIPE)
File '/usr/lib/python2.6/subprocess.py', line 623, in __init__
Comment 6 Andreas Büsching univentionstaff 2011-11-25 22:49:15 CET
Schei? Encoding

Es irgendeinem Grund werden die Texte hier im falschen Encoding aus den Widgets geholt.

{"options":{"manufacturer":"To Be Filled By O.E.M.","model":"To Be Filled By O.E.M.","comment":"üäö","ticket":""}}
Comment 7 Andreas Büsching univentionstaff 2011-11-26 12:01:30 CET
(In reply to comment #6)
> Schei? Encoding

Ist jetzt korrigiert
Comment 8 Stefan Gohmann univentionstaff 2011-11-26 22:01:29 CET
(In reply to comment #7)
> (In reply to comment #6)
> > Schei? Encoding
> 
> Ist jetzt korrigiert

Geht noch nicht:

Execution of command 'sysinfo/system' has failed:

Traceback (most recent call last):
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py', line 97, in execute
func( request )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/sysinfo/__init__.py', line 112, in get_system_info
info, value = line.split(':')
ValueError: need more than 1 value to unpack
Comment 9 Jascha Geerds univentionstaff 2011-11-28 12:11:20 CET
(In reply to comment #8)
> Geht noch nicht:
> 
> Execution of command 'sysinfo/system' has failed:
> 
> Traceback (most recent call last):
> File
> '/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py',
> line 97, in execute
> func( request )
> File
> '/usr/lib/pymodules/python2.6/univention/management/console/modules/sysinfo/__init__.py',
> line 112, in get_system_info
> info, value = line.split(':')
> ValueError: need more than 1 value to unpack

Der Encoding-Bug wurde bereits von Andreas gefixed.

Dieser Traceback hingegen tritt auf, wenn der Computer z.B. mehrere Netzwerkgeräte besitzt. Die Ausgabe vom univention-system-info Tool ist hierbei etwas unschön.

Ich habe es auf die Schnelle nun so angepasst, dass nur das erste gefundene Netzwerkgerät in der UMC angezeigt wird. Der Traceback tritt nicht mehr auf.

Die an uns übermittelten Informationen beinhalten aber ohnehin Daten über alle verbauten Netzwerkkgeräte.
Comment 10 Stefan Gohmann univentionstaff 2011-11-28 20:21:11 CET
Funktioniert.
Comment 11 Sönke Schwardt-Krummrich univentionstaff 2011-12-13 15:49:20 CET
UCS 3.0-0 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer
neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert
werden: "Clone This Bug"