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

ASF GitHub Bot commented on NIFI-5846:
--------------------------------------

Github user kotarot commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/3185#discussion_r237361274
  
    --- 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 --
    
    Sure, I tested it, and it works as well. Thank you for checking 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)

Reply via email to