Bug 741180

Summary: pki-silent does not properly escape command-line arguments
Product: [Retired] Dogtag Certificate System Reporter: Jan Cholasta <jcholast>
Component: Installation WizardAssignee: Ade Lee <alee>
Status: NEW --- QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: mharmsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 769388 (view as bug list) Environment:
Last Closed: 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: 530474, 769388    

Description Jan Cholasta 2011-09-26 07:25:39 UTC
Description of problem:
When you run pkisilent like this:

    pkisilent ... -some_option "ugly ' value" ...

the resulting java invocation will be:

    java ... -some_option ugly ' value ...

instead of:

    java ... -some_option "ugly ' value" ...

which is obviously very wrong.

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

How reproducible:

Steps to Reproduce:
1. Run pkisilent and use a space, quote or any other shell special character in any of its arguments.

Actual results:
pkisilent does not escape the command-line arguments, strange errors occur.

Expected results:
pkisilent should escape all the command-line arguments before using them in shell.

Additional info: