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

Forward slashes in a File Parameter's file location cause parameter download links to break

    Details

    • Similar Issues:

      Description

      When a 'File Parameter' is given a 'File Location' with forward slashes to use a subdirectory of the workspace (ex: subfolder/input.txt), the file cannot be downloaded from the build's Parameters page. A blank page appears when the links are clicked. If there are no slashes in the 'File Location' the file will download fine.

      To Reproduce:
      -------------
      Create New Build
      Check 'This Build is Parameterized'
      Add 'File Parameter' with 'file location' = "subfolder/input.txt"
      Save
      Run Build using a text file named 'testfile.txt' as parameter.
      On that Build's info page
      Click Parameters
      Try and download using the link

      Result:
      -------
      URL like:
      http://JenkinsBox/job/fileParameterBuild/1/parameters/parameter/subdir%2Finput.txt/testfile.txt
      Leading to blank white Page

      Expected Result:
      ----------------
      Specified File Downloads

      Additional Notes:
      -----------------
      The file DOES exist on the server:
      C:\BUILD\.jenkins\jobs\fileParameterBuild\builds\2014-01-10_16-52-47\fileParameters\subdir\input.txt

        Attachments

          Issue Links

            Activity

            bobtheshrew Eric Anker created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Component/s core [ 15593 ]
            Component/s build-with-parameters [ 17657 ]
            danielbeck Daniel Beck made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Not A Defect [ 7 ]
            ircbot Jenkins IRC Bot made changes -
            Component/s parameters [ 15594 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-17512 [ JENKINS-17512 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-31068 [ JENKINS-31068 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 153199 ] JNJira + In-Review [ 194505 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                bobtheshrew Eric Anker
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: