We are using Picketlink 2.5.2.Final for Federated Identity Management within Tomcat 7.0.42. When the user invokes a request without being authenticated the FormAuthenticator will save the request into the session, issue the authentication request and then restore the original request. However, the saveRequest method in FormAuthenticator does not save the request body. Debugging into Tomcat we found out that the while loop which writes the body is stepped over because is.read() returns -1.
InputStream is = request.getInputStream(); while ( (bytesRead = is.read(buffer) ) >= 0) { body.append(buffer, 0, bytesRead); } Can anybody give a hint why the request inputstream can't be read? Thank you! Stefan Tomcat 7.0.42 Picketlink 2.5.2.Final Java 1.6.0_26 SuSE Linux 12