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

URLs to matrixProject subtasks don't work behind Apache ProxyPass

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • matrix-project-plugin
    • Jenkins ver. 2.150.1
      org.jenkins-ci.plugins:matrix-project:1.13
      httpd-2.4.6-67.el7.centos.6.x86_64
      CentOS Linux release 7.3.1611

      My problem arises when:

      • matrix job axis contains parameters with "/" sign (like: paths)
      • Jenkins is proxied by Apache like in: JENKINS-12623

      After run, lins to subtasks look like:

      http://localhost:8080/job/matrixUrlProblem/PATH=%2FmyPath%2Ffile1/

      Note that path parameter is encoded "/" changed to "%2F"

      Everything works fine, but when I want to use http://jenkins.my.organization.com address, it doesn't work. Depending on AllowEncodedShlashes (see https://httpd.apache.org/docs/2.4/mod/core.html#allowencodedslashes ) setting results are differn:

      • AllowEncodedShlashes Off: blocked by Apache
      • AllowEncodedSlashes NoDecode: ERROR 404: Problem accessing /job/matrixUrlProblem/PATH=%252FmyPath%252Ffile1/ (% from original URL encoded as "%25")
      • AllowEncodedSlashes On: ERROR 404: Problem accessing /job/matrixUrlProblem/PATH=/myPath/file1/ ("%2F" decoded back to /)

      The easiest way is to classify it as problem outside Jenkins, but I hope you'll suggest some solution except "fix Apache"

            kohsuke Kohsuke Kawaguchi
            robson Robet Osowiecki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: