Univention Bugzilla – Bug 35700
Traceback when using non-valid search values (= pkgdb unusable)
Last modified: 2016-02-22 11:32:09 CET
Reported by Traceback feedback. Traceback: Die Ausführung des Kommandos pkgdb/proposals 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/decorators.py", line 178, in _response return function(self, request) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/pkgdb/__init__.py", line 221, in _connect func(self, *args, **kwargs) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 305, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 432, in _response for res in function(self, iterator, *nones): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 271, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 579, in _response result = function(self, *args) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/pkgdb/__init__.py", line 311, in proposals return _combobox_data(PROPOSALS[key]) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/pkgdb/__init__.py", line 329, in _combobox_data return [dict(id=identifier, label=_id_to_label(identifier)) for identifier in data] TypeError: 'NoneType' object is not iterable Remark: Traceback erscheint bei uns, wenn im Software-Monitor im Dropdown "Suche nach:" einfach ein anderer Eintrag ausgewählt wird.
Reported again with remark: Im Software-Monitor unter Systeme i Feld "Suche nach" den Wert "Systemrolle" auswählen
Created attachment 6097 [details] pkgdb.patch Bug #34723 introduced this, it is caused by a missing return in a added decorator. It makes the module really unusable, a patch is attached which also fixes the language of the translation and the reconnection to postgres if it fails.
Reported again.
Reported at 2014101321000427
Still valid für 4.0 (at least RC)
(In reply to Florian Best from comment #6) > Reported again. Twice, from different UUIDs.
Remark: Im Softwaremonitor die Systemrolle abgefragt ohne vorher eine andere Operation gemacht zu haben. Die Rolle ist Slave, installiert ist Zarafa (über AppCenter) Grüße
(In reply to Florian Best from comment #7) > (In reply to Florian Best from comment #6) > > Reported again. > > Twice, from different UUIDs. A third time from another UUID.
Again reported, 3.2-4 errata241 (Borgfeld)
Fixed, 2014-11-28-univention-pkgdb.yaml
The patch also fixed the translation of error message strings and it makes sure that after a failed command the connection to the postgresql server ist reconnected in any case.
Code review: OK Tests: OK Advisory: OK
http://errata.univention.de/ucs/4.0/5.html
Reported again, 3.2-8 errata401 (Borgfeld)