Univention Bugzilla – Bug 37337
special characters in object names produce a traceback
Last modified: 2017-04-04 18:28:23 CEST
Test script created for bug #8052: 63_udm-containers.05_container_ou_recursive_removal_with_special_characters. test Traceback (most recent call last): File "05_container_ou_recursive_removal_with_special_characters", line 28, in <module> udm.move_object('container/ou', dn = ou, position = ou2) File "/usr/lib/pymodules/python2.7/univention/testing/udm.py", line 256, in move_object raise UCSTestUDM_MoveUDMObjectFailed({'module': modulename, 'kwargs': kwargs, 'returncode': child.returncode, 'stdout': stdout, 'stderr': stderr}) univention.testing.udm.UCSTestUDM_MoveUDMObjectFailed: {'returncode': 3, 'stdout': 'ldap Error: Bad search filter\n', 'stderr': '', 'module': 'container/ou', 'kwargs': {'dn': 'ou=\xc3\x9ftd\xc3\x9f\xe2\x82\xac:\xc5\xb7**\xc3\xbb,dc=autotest203,dc=loca l', 'position': 'ou=\xc3\x9fde\xce\xa9|_\xc4\x9d{\xc3\xbc1,dc=autotest203,dc=local'}} Special characters which were used in the test were ( !#$%&*-/:?@[]^_`{|}~´€Ω®½) One of them must have triggered this traceback. for now the (*) is removed from the group for now, as it is the one problematic character in the mentioned traceback, and some others as well such as \()=+" (the script should use a random set of special characters). please re-add or comment when this bug is fixed.
Created attachment 8013 [details] patch This is fixed meanwhile. We should reactivate the tests and revert the changes in ucs-test. Patch attached.
Bug #8052 was not solved correctly. All LDAP filter and DN escaping were missing so that the test scripts were wrong. I added this escaping everywhere and readded the missing special characters. ucs-test (7.0.6-12): r73075 | Bug #37337: Bug #8052: Fix escaping of DN's and LDAP filters; revert svn r56733
*** Bug 8052 has been marked as a duplicate of this bug. ***
No QA required.
http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestJoin/SambaVersion=s3,Systemrolle=master/lastCompletedBuild/testReport/63_udm-containers/13_container_cn_relocation_with_special_characters/test/
ucs-test (7.0.6-45): r75729 | Bug #37337: Bug #8052: fix escaping r75720 | Bug #37337: Bug #8052: fix typo r75719 | Bug #37337: Bug #8052: fix typo
OK
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".