* created and EPService cookie is set.
* </UL>
*
- * TODO: What about sessions? Will this be stateless?
+ * Open question: what about sessions? Will this be stateless?
*
* This filter uses no annotations to avoid Spring's automatic registration,
* which add this filter in the chain in the wrong order.
if (in == null) {
String msg = "Failed to find property file on classpath: " + pf;
logger.error(msg);
- throw new RuntimeException(msg);
+ throw new SecurityException(msg);
} else {
try {
in.close();
String redirectUrl = portalBaseUrl + "?" + PortalAuthenticationFilter.REDIRECT_URL_KEY + "=" + encodedAppUrl;
String aHref = "<a href=\"" + redirectUrl + "\">";
// If only Java had "here" documents.
- String body = String.join(//
+ return String.join(//
System.getProperty("line.separator"), //
"<html>", //
"<head>", //
"</p>", //
"</body>", //
"</html>");
- return body;
}
/**