Bug 37403

Summary: AttributeError: 'NoneCandidate' object has no attribute 'section'
Product: UCS Reporter: Florian Best <best>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Florian Best <best>
Severity: normal    
Priority: P5 CC: ebersbach, walkenhorst, wiesenthal
Version: UCS 4.0   
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:

Description Florian Best univentionstaff 2014-12-19 13:08:54 CET
Traceback:
Die Ausführung des Kommandos appcenter/packages/get ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py",
line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 316, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 460, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 282, in _fake_func
    yield function(self, *args)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py",
line 401, in packages_get
    return self._package_to_dict(package, full=True)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py",
line 527, in _package_to_dict
    result['section'] = candidate.section
AttributeError: 'NoneCandidate' object has no attribute 'section'


Remark:
seit dem Update auf Univention Corporate Server 4.0 funktioniert unsere PLUCS-Installation
nicht mehr. Ich habe versucht diese neu zu installieren, was zu dem gemeldeten Fehler
führt.

Version:
4.0-0 errata10 (Walle)
Comment 1 Jan Christoph Ebersbach univentionstaff 2015-01-02 08:12:22 CET
A customer reported this issue also at Ticket #2014110621000331.
Comment 2 Dirk Wiesenthal univentionstaff 2015-01-13 13:27:56 CET
*** Bug 37531 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2015-01-13 13:37:27 CET
(In reply to Dirk Wiesenthal from comment #2)
> *** Bug 37531 has been marked as a duplicate of this bug. ***
reported again.
Comment 4 Dirk Wiesenthal univentionstaff 2015-01-20 01:33:50 CET
Fixed in
  univention-management-console-module-appcenter 4.1.19-7.309.201501200113
Comment 5 Florian Best univentionstaff 2015-01-20 09:51:11 CET
REOPEN:
Traceback (most recent call last):
…
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 72, in __init__
    self.summary = self.version = self.description, self.section = _('Package not found in repository')
ValueError: too many values to unpack
Comment 6 Florian Best univentionstaff 2015-01-20 10:04:02 CET
Please also add self.priority to NoneCandidate otherwise we will experience another failure.
Comment 7 Dirk Wiesenthal univentionstaff 2015-01-20 11:50:12 CET
Fixed. YAML added
Comment 8 Florian Best univentionstaff 2015-01-20 12:12:17 CET
OK: I reproduced the problem in the following way:
* install any app
* open the "Package Management" module
* search for a package shipped by the app
* remove the app
* switch tab back to "Package Management"
* open the details of the package (packages/get) → it contains now the correct "Package not found in repository"
* Trigger a new search for the package → (packages/query) → "Package not found in repository" also in the description.

YAML: OK
Comment 9 Janek Walkenhorst univentionstaff 2015-01-22 11:53:39 CET
<http://errata.univention.de/ucs/4.0/48.html>