Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-439

URL pattern matching fails for default ports HTTP 80 and HTTPS 443

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.5.0
    • Server
    • None

    Description

      If Knox is setup on default ports (i.e. HTTP 80 or HTTPS 443) it will fail as URLs will not match due to missing ports in the URLs. This is caused by APIs in the servlet API that remove these ports from the URLs. This can also affect deployment scenarios where Knox itself is listening on non-default ports but is used behind a load balancer that is listening on a default port. This is because the original request URL presented to the load balancer is the URL user for matching and rewriting in Knox and that port will be removed if it is 80 or 443.

      Attachments

        1. KNOX-439.patch
          1 kB
          Kevin Minder

        Issue Links

          Activity

            kminder Kevin Minder added a comment -

            See this stackoverflow question for relevant discussion.
            http://stackoverflow.com/questions/4040094/getting-request-url-in-a-servlet

            kminder Kevin Minder added a comment - See this stackoverflow question for relevant discussion. http://stackoverflow.com/questions/4040094/getting-request-url-in-a-servlet

            Commit b40aa7881697645ce9dca5f167ce12bfa91c4d59 in knox's branch refs/heads/master from kevin.minder
            [ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=b40aa78 ]

            KNOX-439: URL pattern matching fails for default ports HTTP 80 and HTTPS 443

            jira-bot ASF subversion and git services added a comment - Commit b40aa7881697645ce9dca5f167ce12bfa91c4d59 in knox's branch refs/heads/master from kevin.minder [ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=b40aa78 ] KNOX-439 : URL pattern matching fails for default ports HTTP 80 and HTTPS 443

            Commit 5e6de495eab6a6f169941de701a66ed6d2e8d9a4 in knox's branch refs/heads/v0.5.0 from kevin.minder
            [ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=5e6de49 ]

            KNOX-439: URL pattern matching fails for default ports HTTP 80 and HTTPS 443

            (cherry picked from commit b40aa7881697645ce9dca5f167ce12bfa91c4d59)

            jira-bot ASF subversion and git services added a comment - Commit 5e6de495eab6a6f169941de701a66ed6d2e8d9a4 in knox's branch refs/heads/v0.5.0 from kevin.minder [ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=5e6de49 ] KNOX-439 : URL pattern matching fails for default ports HTTP 80 and HTTPS 443 (cherry picked from commit b40aa7881697645ce9dca5f167ce12bfa91c4d59)
            lmccay Larry McCay added a comment -

            kevin.minder - status?

            It appears to have been fixed...

            lmccay Larry McCay added a comment - kevin.minder - status? It appears to have been fixed...

            People

              Unassigned Unassigned
              kminder Kevin Minder
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: