-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
jenkins.2.201
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/' }
- relates to
-
JENKINS-41891 Serve static files from second domain as an alternative to setting CSP
-
- Closed
-
- links to
[JENKINS-59849] Spaces don't work in resource root paths
Link |
New:
This issue relates to |
Summary | Original: Parentheses don't work in resource root paths | New: Spaces don't work in resource root paths |
Assignee | New: Daniel Beck [ danielbeck ] |
Issue Type | Original: Improvement [ 4 ] | New: Bug [ 1 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Description |
Original:
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. |
New:
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: {code} node('master') { sh '''mkdir "foo bar" touch "foo bar/index.html" ''' archiveArtifacts 'foo bar/' } {code} |
Description |
Original:
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: {code} node('master') { sh '''mkdir "foo bar" touch "foo bar/index.html" ''' archiveArtifacts 'foo bar/' } {code} |
New:
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: {code:java} node('master') { sh '''mkdir -p "foo bar" touch "foo bar/index.html" ''' archiveArtifacts 'foo bar/' } {code} |
Description |
Original:
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: {code:java} node('master') { sh '''mkdir -p "foo bar" touch "foo bar/index.html" ''' archiveArtifacts 'foo bar/' } {code} |
New:
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: {code:java} 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/' } {code} |
danielbeck found the problem: https://github.com/jenkinsci/jenkins/blob/11c1146d0dc30e948ade8d1636ae01345c294291/core/src/main/java/jenkins/security/ResourceDomainRootAction.java#L166-L176