Bug 480631

Summary: Error in shell script "fedora-idm-console" causes problems with arguments containing spaces
Product: [Retired] 389 Reporter: Aleksander Adamowski <bugs-redhat>
Component: Directory ConsoleAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: benl, jgalipea, nkinder
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 8.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-29 23:09:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 249650, 493682    

Description Aleksander Adamowski 2009-01-19 15:03:40 UTC
Description of problem:

When calling fedora-idm-console with an argument which contains whitespace, due to a simple mistake in the shel script the argument is treated as multiple separate arguments.

fedora-idm-console -u 'cn=Directory Manager' 

Version-Release number of selected component (if applicable):

How reproducible:
Try running:

fedora-idm-console -u 'cn=Directory Manager'

You'll notice that in the splash screen, it will display:
Authenticating User ID "cn=Directory"...

instead of:
Authenticating User ID "cn=Directory Manager"...

The fix is very simple, in the last row of the script one has to change the arguments placeholder from $* to "$@".

Like this:

diff  /usr/bin/fedora-idm-console.orig /usr/bin/fedora-idm-console
< java -cp /usr/lib/java/jss4.jar:/usr/share/java/ldapjdk.jar:$CLASSDEST/idm-console-base.jar:$CLASSDEST/idm-console-mcc.jar:$CLASSDEST/idm-console-mcc_en.jar:$CLASSDEST/idm-console-nmclf.jar:$CLASSDEST/idm-console-nmclf_en.jar:$CLASSDEST/fedora-idm-console-1.1.1_en.jar -Djava.library.path=/usr/lib64 -Djava.util.prefs.systemRoot="$HOME/.fedora-idm-console" -Djava.util.prefs.userRoot="$HOME/.fedora-idm-console" com.netscape.management.client.console.Console $*
> java -cp /usr/lib/java/jss4.jar:/usr/share/java/ldapjdk.jar:$CLASSDEST/idm-console-base.jar:$CLASSDEST/idm-console-mcc.jar:$CLASSDEST/idm-console-mcc_en.jar:$CLASSDEST/idm-console-nmclf.jar:$CLASSDEST/idm-console-nmclf_en.jar:$CLASSDEST/fedora-idm-console-1.1.1_en.jar -Djava.library.path=/usr/lib64 -Djava.util.prefs.systemRoot="$HOME/.fedora-idm-console" -Djava.util.prefs.userRoot="$HOME/.fedora-idm-console" com.netscape.management.client.console.Console "$@"

Comment 1 Rich Megginson 2009-01-21 21:31:07 UTC
Checking in fedora-idm-console;
/cvs/dirsec/fedora-idm-console/fedora-idm-console,v  <--  fedora-idm-console
new revision: 1.3; previous revision: 1.2

Comment 2 Jenny Severance 2009-03-19 17:04:22 UTC
Not sure if this is valid for Red Hat Directory Server or just Fedora DS - but able to launch redhat-idm-console -u 'cn=Directory Manager' without issue.

Comment 3 Chandrasekar Kannan 2009-04-29 23:09:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.