I am trying to configure MixedAuthenticator Valve (Waffle 1.9.0) in tomcat 8.5.
I followed valve documentation from github.
the POST to index.jsp?j_negotiate_check is working, I am logged as current user.
the POST to index.jsp?j_security_check is also working but with a bad experience,I am authenticated but the first page I get is a 500 page:
java.lang.IllegalArgumentException: Path [] does not start with a "/" character
at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:403)
at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:223)
at waffle.apache.MixedAuthenticator.redirectTo(MixedAuthenticator.java:275)
at waffle.apache.MixedAuthenticator.authenticate(MixedAuthenticator.java:105)
It seems to be because request.getServletPath() return nulls for this king of mapping ;
<servlet-mapping> <servlet-name>bridgeservlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
Maybe I am wrong but maybe MixedAuthenticator should behave the same for FORM and negotiate authentication and return the this.post(request, response) result instead of trying to redirect
Arnaud