Issue Type: Bug Bug
Affects Versions: current
Assignee: vjuranek
Components: groovy
Created: 30/Jun/14 6:43 AM
Description:

The issue is caused by oversimplified parameters parsing implementation in this class: https://github.com/jenkinsci/groovy-plugin/blob/master/src/main/java/hudson/plugins/groovy/Groovy.java

//Add groovy parameters
        if(parameters != null) {
            StringTokenizer tokens = new StringTokenizer(parameters);
            while(tokens.hasMoreTokens()) {
                list.add(Util.replaceMacro(tokens.nextToken(),vr));
            }
        }

I would suggest to switch to org.apache.commons.exec.CommandLine.parse(..) method from Apache commons-exec.
Not ideal, I know, but probably the best possible option if parsing command-line is inevitable.

Is anyone interested in the patch? It would be very straightforward.

Project: Jenkins
Priority: Major Major
Reporter: enterit
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to