Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13856

Jenkins wraps square and curly bracket string parameter values in quotation marks

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Environment:
      1.424.6 on Windows Server 2008 R2
      1.465 on Windows 7
    • Similar Issues:

      Description

      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.

      Example

      This results for example in a value being changed from

      [foo]
      

      to

      "[foo]"
      

      Affected argument values have the following formats:

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

      etc.

      The following are not affected by this behavior:

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

      Workaround

      Add a leading space character

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Was fixed in 1.506.

            Show
            jglick Jesse Glick added a comment - Was fixed in 1.506.

              People

              • Assignee:
                Unassigned
                Reporter:
                danielbeck Daniel Beck
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: