Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5237

Wrong redirect from login behind a context path, when using OpenID authentication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • None
    • None
    • NiFi behind a reverse proxy (HAProxy)

    Description

      When I deploy NiFi behind a custom context path eg (https://my-nifi/my/context/path/) and using OpenID authentication, after the login I'm redirected to https://my-nifi/nifi/ instead of https://my-nifi/my/context/path/nifi/ .

      My presumption is, that the relative redirect in httpServletResponse.sendRedirect it's respecting the contextPath provided in the X-ProxyContextPath header:
      https://github.com/apache/nifi/blob/rel/nifi-1.6.0/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java#L269

      Attachments

        Issue Links

          Activity

            People

              mcgilman Matt Gilman
              trojan295 Damian Czaja
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: