Bug 30097 - AttributeError: 'NoneType' object has no attribute 'summary'
Summary: AttributeError: 'NoneType' object has no attribute 'summary'
Status: CLOSED DUPLICATE of bug 29899
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
Version: UCS 3.0
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 3.1-1
Assignee: Dirk Wiesenthal
QA Contact: Alexander Kläser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 20:44 CET by Stefan Gohmann
Modified: 2013-03-25 19:56 CET (History)
2 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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2013-01-21 20:44:40 CET
------------------------------------------------------------------------
Die Ausführung des Kommandos appcenter/packages/query ist fehlgeschlagen:

Traceback (most recent call last):
  File 
"/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", 
line 204, in execute
    func( request )
  File 
"/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", 
line 176, in _response
    return function(self, request)
  File 
"/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", 
line 282, in _response
    result = _multi_response(self, request)
  File 
"/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", 
line 384, in _response
    for res in function(self, iterator, *nones):
  File 
"/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", 
line 266, in _fake_func
    yield function(self, *args)
  File 
"/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/__init__.py", 
line 239, in packages_query
    result.append(self._package_to_dict(package, full=False))
  File 
"/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/__init__.py", 
line 324, in _package_to_dict
    'summary': candidate.summary,
AttributeError: 'NoneType' object has no attribute 'summary'

------------------------------------------------------------------------

univention-management-console-frontend 2.0.180-1.550.201301141527

I'm not sure how to reproduce this behavior. The tester said he removed univention-mail-postfix which also removed some zarafa packages. He didn't reload UMC after that and searched for zarafa packages and then the error occurred.
Comment 1 Dirk Wiesenthal univentionstaff 2013-01-21 21:11:23 CET
This is most probably a duplicate of Bug#29899: The candidate is None means that the package manager still knows of a package named, say, zarafa, but this package cannot be found in any repository. I encountered that problem while not connected to any network. Did the tester still have any Zarafa repositories activated? Did he ever had? Maybe he installed the package as *.deb via dpkg - another situation where the APT cannot know a possible candidate for a package named zarafa.

*** This bug has been marked as a duplicate of bug 29899 ***
Comment 2 Alexander Kläser univentionstaff 2013-03-15 15:53:44 CET
QA: OK, das funktioniert jetzt. Ich konnte eine App installieren, dann entfernen. Das Paket ist immer noch in der Datenbank, da es gepurget werden kann, dann wird angezeigt, dass es nicht in der Datenbank gefunden wird.
Comment 3 Stefan Gohmann univentionstaff 2013-03-25 19:56:38 CET
UCS 3.1-1 has been released: 
 http://download.univention.de/doc/release-notes-3.1-1_en.pdf
 http://download.univention.de/doc/release-notes-3.1-1.pdf

If this error occurs again, please use "Clone This Bug".