tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bley, Stefan" <>
Subject FormAuthenticator: saveRequest does not preserve body
Date Wed, 13 Nov 2013 12:18:42 GMT
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
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 returns -1.

        InputStream is = request.getInputStream();

        while ( (bytesRead = ) >= 0) {
            body.append(buffer, 0, bytesRead);

Can anybody give a hint why the request inputstream can't be read?
Thank you!


Tomcat 7.0.42
Picketlink 2.5.2.Final
Java 1.6.0_26
SuSE Linux 12

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message