Bug 37531

Summary: AttributeError: 'NoneCandidate' object has no attribute 'section'
Product: UCS Reporter: Florian Best <best>
Component: UMC - App-CenterAssignee: UMC maintainers <umc-maintainers>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: gohmann, wiesenthal
Version: UCS 4.0   
Target Milestone: ---   
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): API change, Error handling, External feedback
Max CVSS v3 score:
Bug Depends on: 36209    
Bug Blocks:    

Description Florian Best univentionstaff 2015-01-13 13:20:02 CET
Reported via UMC traceback feedback with 4.0-0 errata21 (Walle).

Traceback:
Execution of command 'appcenter/packages/get' has failed:

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'


+++ This bug was initially created as a clone of Bug #36209 +++

I tried to install libaudit0 via 'Package Management' UMC module and I got the following traceback:

Execution of command 'appcenter/packages/get' has failed:

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 309, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 449, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 275, in _fake_func
    yield function(self, *args)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 400, 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 526, in _package_to_dict
    result['section'] = candidate.section
AttributeError: 'NoneCandidate' object has no attribute 'section'
Comment 1 Dirk Wiesenthal univentionstaff 2015-01-13 13:27:56 CET

*** This bug has been marked as a duplicate of bug 37403 ***
Comment 2 Florian Best univentionstaff 2015-01-13 13:37:43 CET
(In reply to Dirk Wiesenthal from comment #1)
> 
> *** This bug has been marked as a duplicate of bug 37403 ***

I knew this :D