Bug 22235 - Methode "containerexists" aus "ucs-test/lib/container.lib" ist fehlerhaft
Methode "containerexists" aus "ucs-test/lib/container.lib" ist fehlerhaft
Status: CLOSED WORKSFORME
Product: UCS Test
Classification: Unclassified
Component: Framework
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Philipp Hahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-18 15:47 CEST by Arne Boockmeyer
Modified: 2023-03-25 06:49 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Boockmeyer 2011-04-18 15:47:17 CEST
Die Methode "containerexists" aus der Datei "ucs-test/lib/container.lib" kann nicht mit Leerzeichen umgehen:

containerexists "cn=Domain Admins,cn=groups,dc=domain,dc=test"
info 2011-04-18 12:32    checks wheter a cn with the dn cn=Domain Admins,cn=groups,dc=domain,dc=test exists
error 2011-04-18 12:32   cn does not exists
Comment 1 Philipp Hahn univentionstaff 2014-01-29 17:08:06 CET
# dpkg-query -W ucs-test-libs
ucs-test-libs   4.0.161-19.659.201301080721

# export TESTLIBPATH=/usr/share/ucs-test/lib
# . "$TESTLIBPATH/container.sh"

# set -x ; container_exists "cn=Virtual Machine Manager" ; echo $? ; set +x
+ container_exists 'cn=Virtual Machine Manager'
+ local 'NAME=cn=Virtual Machine Manager'
+ info 'checks wheter a cn with the dn cn=Virtual Machine Manager exists'
+ '[' 3 -ge 2 ']'
++ date '+%Y-%m-%d %H:%M:%S\t'
+ echo -e 'info 2014-01-29 17:06:23\t checks wheter a cn with the dn cn=Virtual Machine Manager exists'
info 2014-01-29 17:06:23         checks wheter a cn with the dn cn=Virtual Machine Manager exists
+ udm-test container/cn list
+ grep -q '^DN: cn=Virtual Machine Manager'
Traceback (most recent call last):
  File "/usr/sbin/univention-directory-manager", line 177, in <module>
    main()
  File "/usr/sbin/univention-directory-manager", line 172, in main
    result = process_output(output, cmdfile)
  File "/usr/sbin/univention-directory-manager", line 148, in process_output
    print line
IOError: [Errno 32] Broken pipe
+ info 'cn exists'
+ '[' 3 -ge 2 ']'
++ date '+%Y-%m-%d %H:%M:%S\t'
+ echo -e 'info 2014-01-29 17:06:24\t cn exists'
info 2014-01-29 17:06:24         cn exists
+ return 0
+ echo 0
0
+ set +x

The Traceback is Bug #32532
Comment 2 Stefan Gohmann univentionstaff 2016-10-12 07:49:14 CEST
For this bug is no separate QA needed.