Univention Bugzilla – Bug 41542
Removing an unregistered App may result in a traceback
Last modified: 2016-09-22 07:23:55 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'
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".
*** Bug 41537 has been marked as a duplicate of this bug. ***
OK - univention-appcenter OK - univention-appcenter.yaml
<http://errata.software-univention.de/ucs/4.1/206.html>