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

text parameter with newlines causing the default goal run

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 1.583, Windows, Java 7U72
    • Similar Issues:

      Description

      I have a required build-parameter "build_reason" of type text. Our users can insert some free-text for the build reason.

      If the parameter contains, for example, following input in the text-box:

      "first line
      second line"

      then jenkins calling maven in the following way:

      [testwebapp_svn_commit] $ D:\applications\prg\ApacheMaven\current-maven\bin\mvn.bat -Dbuild_reason_org=first line
      scond line -Dpart_svn_url=trunk/devopts/testprojects validate

      This causes maven to simple run the default goal and ignore all other parameters.
      It seems that the text parameter is not escaped correct.

      This problem does not apply only to maven .. it applies to all builds where such parameter is injected.

      • Waffel

        Attachments

          Issue Links

            Activity

            waffel Thomas Wabner created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Component/s core [ 15593 ]
            Component/s maven-plugin [ 16033 ]
            Labels build jenkins maven3 parameter parameter
            Priority Major [ 3 ] Minor [ 4 ]
            danielbeck Daniel Beck made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            olivergondza Oliver Gondža made changes -
            Link This issue is related to JENKINS-26684 [ JENKINS-26684 ]
            olivergondza Oliver Gondža made changes -
            Assignee Oliver Gondža [ olivergondza ]
            olivergondza Oliver Gondža made changes -
            Assignee Oliver Gondža [ olivergondza ]
            danielbeck Daniel Beck made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 159382 ] JNJira + In-Review [ 196059 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              waffel Thomas Wabner
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: