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

Spaces don't work in resource root paths

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:
    • Released As:
      jenkins.2.201

      Description

      We have an archived folder called HeadlessChrome 77.0.3865 (Linux 0.0.0) with a file index.html the contents of that folder fail when served via resource root.
      If I make a copy of the folder HeadlessChrome-77.0.3865-(Linux-0.0.0), that index.html file will be served successfully.

      Pipeline for testing:

      node('master') {
         sh '''mkdir -p "a/foo bar has lots of spaces to make people unhappy"
         touch "a/foo bar has lots of spaces to make people unhappy/index.html"
         '''
         archiveArtifacts 'a/'
      }
      

        Attachments

          Issue Links

            Activity

            Show
            jsoref Josh Soref added a comment - Daniel Beck found the problem: https://github.com/jenkinsci/jenkins/blob/11c1146d0dc30e948ade8d1636ae01345c294291/core/src/main/java/jenkins/security/ResourceDomainRootAction.java#L166-L176
            Hide
            danielbeck Daniel Beck added a comment -

            Will be released tomorrow or Monday.

            Show
            danielbeck Daniel Beck added a comment - Will be released tomorrow or Monday.
            Hide
            jsoref Josh Soref added a comment -

            Picked up the change, verified it works. Thanks  

            Show
            jsoref Josh Soref added a comment - Picked up the change, verified it works. Thanks  

              People

              • Assignee:
                danielbeck Daniel Beck
                Reporter:
                jsoref Josh Soref
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: