Daniel Beck created JENKINS-13856:
-------------------------------------

             Summary: Jenkins wraps square and curly bracket string parameter 
values in quotation marks
                 Key: JENKINS-13856
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13856
             Project: Jenkins
          Issue Type: Bug
          Components: core
         Environment: 1.424.6 on Windows Server 2008 R2
1.465 on Windows 7
            Reporter: Daniel Beck


String parameters that start and end with a matched pair of square or angle 
brackets are wrapped in double quotation marks. This impacts use of JSON as 
actual argument values.

This behavior occurs outside of job execution: Default parameter values are 
changed while saving, with the double quotation marks present on subsequent 
access to the Configure page as well as the Build Now parameters page.

h3. Example

This results for example in a value being changed from

{code}
[foo]
{code}

to

{code}
"[foo]"
{code}

Affected argument values have the following formats:

{code}
[]
{}
[foo]
{foo}
[foo bar]
{foo {} bar}
{code}

etc.

The following are not affected by this behavior:

{code}
()
<>
[}
{]
 {}
 []
[foo}
{foo]
foo[bar]
foo[bar
[foo]bar
{code}

h3. Workaround

Add a leading space character

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to