[
https://issues.apache.org/jira/browse/KNOX-2684?focusedWorklogId=669173&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-669173
]
ASF GitHub Bot logged work on KNOX-2684:
----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Oct/21 10:18
Start Date: 23/Oct/21 10:18
Worklog Time Spent: 10m
Work Description: smolnar82 commented on pull request #511:
URL: https://github.com/apache/knox/pull/511#issuecomment-950129527
Cc. @zeroflag
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 669173)
Remaining Estimate: 0h
Time Spent: 10m
> Getting 500 error after clicking logout link
> --------------------------------------------
>
> Key: KNOX-2684
> URL: https://issues.apache.org/jira/browse/KNOX-2684
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 1.6.0
> Reporter: Sandeep More
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 1.6.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When the logout link is clicked we get the following error
> {code:java}
> HTTP ERROR 500 javax.servlet.ServletException:
> org.apache.jasper.JasperException: Unable to compile class for JSP:
> An error occurred at line: [155] in the jsp file: [/logout.jsp]
> response cannot be resolved
> 152: } catch (Exception e) {
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> An error occurred at line: [156] in the jsp file: [/logout.jsp]
> response cannot be resolved
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> An error occurred at line: [156] in the jsp file: [/logout.jsp]
> globalLogoutPageURL cannot be resolved to a variable
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> An error occurred at line: [157] in the jsp file: [/logout.jsp]
> This method must return a result of type String
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> 160:
> An error occurred at line: [157] in the jsp file: [/logout.jsp]
> Syntax error, insert "}" to complete MethodBody
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> 160:
> Stacktrace:
> URI:/gateway/knoxsso/knoxauth/logout.jsp
> STATUS:500
> MESSAGE:javax.servlet.ServletException: org.apache.jasper.JasperException:
> Unable to compile class for JSP:
> An error occurred at line: [155] in the jsp file: [/logout.jsp]
> response cannot be resolved
> 152: } catch (Exception e) {
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> An error occurred at line: [156] in the jsp file: [/logout.jsp]
> response cannot be resolved
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> An error occurred at line: [156] in the jsp file: [/logout.jsp]
> globalLogoutPageURL cannot be resolved to a variable
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> An error occurred at line: [157] in the jsp file: [/logout.jsp]
> This method must return a result of type String
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> 160:
> An error occurred at line: [157] in the jsp file: [/logout.jsp]
> Syntax error, insert "}" to complete MethodBody
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> 160:
> Stacktrace:
> SERVLET:jsp
> CAUSED BY:javax.servlet.ServletException: org.apache.jasper.JasperException:
> Unable to compile class for JSP:
> An error occurred at line: [155] in the jsp file: [/logout.jsp]
> response cannot be resolved
> 152: } catch (Exception e) {
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> An error occurred at line: [156] in the jsp file: [/logout.jsp]
> response cannot be resolved
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> An error occurred at line: [156] in the jsp file: [/logout.jsp]
> globalLogoutPageURL cannot be resolved to a variable
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> An error occurred at line: [157] in the jsp file: [/logout.jsp]
> This method must return a result of type String
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> 160:
> An error occurred at line: [157] in the jsp file: [/logout.jsp]
> Syntax error, insert "}" to complete MethodBody
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> 160:
> Stacktrace:
> CAUSED BY:org.apache.jasper.JasperException: Unable to compile class for JSP:
> An error occurred at line: [155] in the jsp file: [/logout.jsp]
> response cannot be resolved
> 152: } catch (Exception e) {
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> An error occurred at line: [156] in the jsp file: [/logout.jsp]
> response cannot be resolved
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> An error occurred at line: [156] in the jsp file: [/logout.jsp]
> globalLogoutPageURL cannot be resolved to a variable
> 153: return "";
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> An error occurred at line: [157] in the jsp file: [/logout.jsp]
> This method must return a result of type String
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> 160:
> An error occurred at line: [157] in the jsp file: [/logout.jsp]
> Syntax error, insert "}" to complete MethodBody
> 154: }
> 155:
> response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
> 156: response.setHeader("Location", globalLogoutPageURL);
> 157: return;
> 158: %>
> 159: </head>
> 160:
> Stacktrace:
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)