Univention Bugzilla – Bug 41905
Traceback when registering App with '+' in version
Last modified: 2017-04-04 18:29:32 CEST
App Version was: 2.3.0+8 03.08.16 15:14:00.299 MODULE ( WARN ) : Die Registrierung der Applikation im LDAP ist fehlgeschlagen. Sie wird bei jedem Öffnen des App Center Moduls wiederholt werden. 03.08.16 15:14:00.338 MODULE ( WARN ) : Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 1708, in install self.tell_ldap(component_manager.ucr, package_manager) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 1508, in tell_ldap ldap_object = iapp.get_ldap_object(or_create=True) File "/usr/lib/pymodules/python2.7/univention/management/console/ldap.py", line 135, in _decorated result = func(*args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 1404, in get_ldap_object return ApplicationLDAPObject.create(self, ldap_connection, co, ldap_position) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 216, in create obj.create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 352, in create return self._create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 784, in _create self.lo.add(self.dn, al) File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 402, in add raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg) ldapError: Invalid DN syntax: invalid DN Workaround was to replace the + in the version string...
Created attachment 7873 [details] patch simpleLDAP is now (since >= UCS 4.1-2-errata211) able to create the DN dynamically.
Got fixed along with Bug#43624. The DN is escaped now. univention-appcenter 6.0.1-38A~4.2.0.201702231620
*** Bug 40805 has been marked as a duplicate of this bug. ***
OK: escaping is done correctly. OK: changelog # udm appcenter/app create --set version='asdf+asdf' --set name=foo --set id='foo+bar' Object created: univentionAppID=foo\+bar,dc=school,dc=local
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".