This is an automated email from the ASF dual-hosted git repository.

smolnar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new c87268b  KNOX-2684 - Fixed logout.jsp compilation issue (#511)
c87268b is described below

commit c87268bacc4536da69c4918e9abc2f6a83db1afe
Author: Sandor Molnar <[email protected]>
AuthorDate: Sun Oct 24 10:03:10 2021 +0200

    KNOX-2684 - Fixed logout.jsp compilation issue (#511)
---
 .../src/main/resources/applications/knoxauth/app/logout.jsp         | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/gateway-applications/src/main/resources/applications/knoxauth/app/logout.jsp 
b/gateway-applications/src/main/resources/applications/knoxauth/app/logout.jsp
index 3504c7f..1821ac7 100644
--- 
a/gateway-applications/src/main/resources/applications/knoxauth/app/logout.jsp
+++ 
b/gateway-applications/src/main/resources/applications/knoxauth/app/logout.jsp
@@ -142,7 +142,7 @@
                 // do nothing
                 // we are probably not going to be able to
                 // remove the cookie due to this error but it
-                // isn't necessarily not going to work.
+                // is not necessarily not going to work.
                 }
                 setCookie.append("; HttpOnly");
                 setCookie.append("; Secure");
@@ -152,9 +152,7 @@
             } catch (Exception e) {
                 return "";
             }
-            response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
-            response.setHeader("Location", globalLogoutPageURL);
-            return;
+       }
     %>
   </head>
   

Reply via email to