Univention Bugzilla – Bug 8052
cli-test: CN/OU mit Leerzeichen, Umlauten und Sonderzeichen (Klammer)
Last modified: 2016-10-11 10:26:12 CEST
Das Testskript sollte CN/OU-Objekte mit Leerzeichen, Umlauten und Sonderzeichen (Klammer, Ausrufezeichen,...) anlegen und darunter Benutzer, Gruppen usw. anlegen/bearbeiten/löschen. Dabei sollte z.B. Bug #8045 auftreten.
This issue has been filed against the UCS version "unstable" which does not really exist. Please change the version value.
updated product and version; this might already be implemented.
Please check if it is already part of test/ucs-test/tests/63_udm-containers. Test cases should be added to ucs-3.2 and to ucs-4.0.
In univention/testing/strings.py a new function "random_name_special_characters" was added to handle creating random names with special characters. Not all special characters are included for some can affect ldapsearch filter functuality. e.g.: using "(" OR ")" in the ou/cn name results: Traceback (most recent call last): File "08_container_ou_rename_uppercase_rollback_with_special_characters", line 43, in <module> for dn, entry in lo.search(filter='ou=%s' % ou_name): File "/usr/lib/pymodules/python2.6/univention/uldap.py", line 339, in search timeout=timeout, sizelimit=sizelimit) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 814, in search_ext_s return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 766, in _apply_method_s return func(self,*args,**kwargs) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 495, in search_ext_s msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 491, in search_ext timeout,sizelimit, File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call result = func(*args,**kwargs) ldap.FILTER_ERROR: {'desc': 'Bad search filter'} Modified version of the original test scripts are created in the same directory for both ucs-3.2 and to ucs-4.0, to add the cases of special characters existance in ou/cn containers names, with the names: 00_container_ou_creation_with_special_characters 01_container_ou_modification_set_description_with_special_characters 02_container_ou_creation_set_description_with_special_characters 03_container_ou_relocation_with_special_characters 04_container_ou_recursive_relocation_with_special_characters 05_container_ou_recursive_removal_with_special_characters 06_container_ou_rename_with_special_characters 07_container_ou_rename_uppercase_with_special_characters 08_container_ou_rename_uppercase_rollback_with_special_characters 10_container_cn_creation_with_special_characters 11_container_cn_modification_set_description_with_special_characters 12_container_cn_creation_set_description_with_special_characters 13_container_cn_relocation_with_special_characters 14_container_cn_recursive_relocation_with_special_characters 15_container_cn_recursive_removal_with_special_characters 16_container_cn_rename_with_special_characters 17_container_cn_rename_uppercase_with_special_characters 18_container_cn_rename_uppercase_rollback_with_special_characters Scripts 06_ and 07_ trigger the Bug #35959. Scrpts are tested on single server and multi server environments.
Some troublesome special character were removed from the set to be included in the test until bug #37337 is fixed.
*** This bug has been marked as a duplicate of bug 37337 ***