@Override
public long getDateHeader(String name) {
if (!needRequestRestore) return super.getDateHeader(name);
/*throw new RuntimeException("This method is not supported in a restored authenticated request");*/
return -1; //http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpServletRequest.html specifies that if it isn't present, return -1.
}
... (trimmed)We get this exception:Keycloak Version 1.7.0Hi Folks,We have configured Keycloak as an SP via filter.
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[AppName]] Servlet.service() for servlet NasDefault threw exception: java.lang.RuntimeException: This method is not supported in a restored authenticated request
at org.keycloak.adapters.servlet.FilterSessionStore$1.getDateHeader(FilterSessionStore.java:178) [:1.7.0.CR1]
at org.apache.catalina.servlets.DefaultServlet.checkIfModifiedSince(DefaultServlet.java:1731) [:]
at org.apache.catalina.servlets.DefaultServlet.checkIfHeaders(DefaultServlet.java:608) [:]
at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:714) [:]
at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:368) [:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]...
at org.keycloak.adapters.saml.servlet.SamlFilter.doFilter(SamlFilter.java:125) [:1.7.0.CR1]
...(trimmed)
...etc.Any ideas on what this error means?Thanks,Regards,Akshay