Bug 8052 - cli-test: CN/OU mit Leerzeichen, Umlauten und Sonderzeichen (Klammer)
cli-test: CN/OU mit Leerzeichen, Umlauten und Sonderzeichen (Klammer)
Status: CLOSED DUPLICATE of bug 37337
Product: UCS Test
Classification: Unclassified
Component: UDM
unspecified
All Linux
: P4 enhancement (vote)
: ---
Assigned To: Ammar Najjar
Florian Best
:
Depends on: 35959
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-27 08:06 CEST by Ingo Steuwer
Modified: 2016-10-11 10:26 CEST (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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Steuwer univentionstaff 2007-03-27 08:06:17 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.
Comment 1 Stefan Gohmann univentionstaff 2014-02-18 21:29:12 CET
This issue has been filed against the UCS version "unstable" which does not really exist. Please change the version value.
Comment 2 Ingo Steuwer univentionstaff 2014-02-19 09:05:33 CET
updated product and version; this might already be implemented.
Comment 3 Stefan Gohmann univentionstaff 2014-09-11 15:09:39 CEST
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.
Comment 4 Ammar Najjar univentionstaff 2014-09-19 10:57:20 CEST
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.
Comment 5 Ammar Najjar univentionstaff 2014-12-15 10:53:57 CET
Some troublesome special character were removed from the set to be included in the test until bug #37337 is fixed.
Comment 6 Florian Best univentionstaff 2016-10-11 10:25:59 CEST

*** This bug has been marked as a duplicate of bug 37337 ***