You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (Jira)" <ji...@apache.org> on 2021/02/19 19:16:00 UTC

[jira] [Created] (NIFI-8242) AccessResource should use a trailing / when redirecting to NiFi UI

Bryan Bende created NIFI-8242:
---------------------------------

             Summary: AccessResource should use a trailing / when redirecting to NiFi UI
                 Key: NIFI-8242
                 URL: https://issues.apache.org/jira/browse/NIFI-8242
             Project: Apache NiFi
          Issue Type: Improvement
    Affects Versions: 1.13.0
            Reporter: Bryan Bende
            Assignee: Bryan Bende


In AccessResource there is a method getNiFiUri() which returns a url that ends with "/nifi". Jetty has a requirement that a context path must end in a trailing /, and if it does not it will redirect to the url with the / (i.e. /nifi/). In most cases this is fine and no one will notice the Jetty redirect, but if you are behind a proxy, the Jetty redirect does not consider proxy related headers, so the redirect may land you at a host/port that is the local nifi host/port, and not through the proxy which will likely cause problems.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)