Bug 41542 - Removing an unregistered App may result in a traceback
Removing an unregistered App may result in a traceback
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P1 normal (vote)
: UCS 4.1-2-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
: 41537 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-13 11:07 CEST by Dirk Wiesenthal
Modified: 2016-09-22 07:23 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
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 Dirk Wiesenthal univentionstaff 2016-06-13 11:07:54 CEST
Version: 4.1-2 errata197 (Vahr)

Traceback(3d2933d361d9c31d18ad3b2105fd88a5):
Die Ausführung des Kommandos appcenter/invoke_dry_run ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 283, in execute
    function(self, request)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 312, in invoke_dry_run
    self.invoke(request)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 123, in _deferred
    return func(self, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 656, in _decorated
    return function(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 190, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 493, in invoke
    forbidden, warnings = application.check_invokation(function, self.package_manager)
  File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 1213, in check_invokation
    return _check(True), _check(False)
  File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 1209, in _check
    reason = method(**kwargs)
  File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 1159, in must_not_be_depended_on
    if ldap_object._udm_obj and len(ldap_object._udm_obj.info.get('server', [])) <= 1:
AttributeError: 'NoneType' object has no attribute '_udm_obj'
Comment 1 Dirk Wiesenthal univentionstaff 2016-06-13 11:13:59 CEST
I am not sure how critical this is. The test is only run during uninstall. And uninstall normally requires a registered App, so that ldap_object may not be None. This may happen when another session uninstalled the App and then one tries to uninstall it, maybe?

Anyways, fixed in
  univention-appcenter 5.0.21-7.170.201606131112

by testing for ldap_object "existence".
Comment 2 Florian Best univentionstaff 2016-06-13 11:15:14 CEST
*** Bug 41537 has been marked as a duplicate of this bug. ***
Comment 3 Felix Botner univentionstaff 2016-06-20 14:25:58 CEST
OK - univention-appcenter
OK - univention-appcenter.yaml
Comment 4 Janek Walkenhorst univentionstaff 2016-06-29 12:26:40 CEST
<http://errata.software-univention.de/ucs/4.1/206.html>