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

URLs to matrixProject subtasks don't work behind Apache ProxyPass

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: matrix-project-plugin
    • Labels:
    • Environment:
      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
    • Similar Issues:

      Description

      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"

        Attachments

          Activity

          Hide
          robson Robet Osowiecki added a comment -

          Issue reported to Apache devs too:
          https://bz.apache.org/bugzilla/show_bug.cgi?id=63084

          Show
          robson Robet Osowiecki added a comment - Issue reported to Apache devs too: https://bz.apache.org/bugzilla/show_bug.cgi?id=63084
          Hide
          robson Robet Osowiecki added a comment -

          There's a solution in Apache: add "nocanon" option to ProxyPass. Changing Priority to "minor", please change to Fixed if you like.

          Show
          robson Robet Osowiecki added a comment - There's a solution in Apache: add "nocanon" option to ProxyPass. Changing Priority to "minor", please change to Fixed if you like.

            People

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

              Dates

              • Created:
                Updated: