[ 
https://issues.apache.org/jira/browse/NIFI-8242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17288259#comment-17288259
 ] 

ASF subversion and git services commented on NIFI-8242:
-------------------------------------------------------

Commit 6ed496c714712b979d12f1eeba7da946e086c925 in nifi's branch 
refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=6ed496c ]

NIFI-8242 Ensure NiFi URL for redirects has a trailing slash in AccessResource

Signed-off-by: Pierre Villard <[email protected]>

This closes #4834.


> 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
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to