Red Hat Bugzilla – Bug 824129
JON CLI - Parameters to exec command not parsed correctly when using quotes
Last modified: 2013-09-01 06:17:02 EDT
Created attachment 586140 [details]
Script with input redirection
Description of problem:
Parameters to exec command not parsed correctly when using quotes (single/double) around value
Version-Release number of selected component (if applicable):
RHQ Remoting Client 184.108.40.2060BETA1
Call a script with an index parameter in the exec command when using JON CLI in interactive mode
Steps to Reproduce:
1. Call a script that does input redirection including exec command
The value of the parameter as retrieved via args contains the quotes and ends with character before the first space
The value of the parameter is the value between the quotes.
Created attachment 586141 [details]
The script that receives the parameters
Created attachment 586143 [details]
A library script
per BZ Triage 5/29/2012 (ccrouch, loleary, asantos, mfoley, myarborough) moving these to JON 3.1.1 or later
I am not sure why, but we were treating both single and double quotes as regular words/symbols as opposed to quote delimiters. I have checked in a fix to master.
commit hash: 522ff41ba7
I will post this info to the devel list for additional feedback and based on that feedback open up another bug to track this.
Added fix for bug 829309. The parsing changes now only take effect for the script arguments in the command line. The commit has been pushed to master.
commit hash: 5e8863403
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.