[
https://issues.apache.org/jira/browse/NIFI-5846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16702379#comment-16702379
]
ASF GitHub Bot commented on NIFI-5846:
--------------------------------------
Github user patricker commented on a diff in the pull request:
https://github.com/apache/nifi/pull/3185#discussion_r237256616
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/java/org/apache/nifi/web/filter/LogoutFilter.java
---
@@ -50,7 +50,7 @@ public void doFilter(ServletRequest request,
ServletResponse response, FilterCha
final ServletContext apiContext =
servletContext.getContext("/nifi-api");
apiContext.getRequestDispatcher("/access/knox/logout").forward(request,
response);
} else {
- ((HttpServletResponse) response).sendRedirect("../login");
+ ((HttpServletResponse) response).sendRedirect("../nifi/login");
--- End diff --
Can you test, `sendRedirect("login");`? I think the reason it breaks is
because we are already in the `nifi` directory, but the `..` makes us leave it.
> Redirect URL is incorrect after logout
> --------------------------------------
>
> Key: NIFI-5846
> URL: https://issues.apache.org/jira/browse/NIFI-5846
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.8.0
> Reporter: Kotaro Terada
> Assignee: Kotaro Terada
> Priority: Major
> Attachments: login-incorrect-url.png
>
>
> When we click the logout button on the Web UI, it currently redirects to
> "/login" instead of "/nifi/login" after logging out, which causes the error
> page shown in the attached screenshot.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)