-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Stefen,
On 11/13/13, 7:18 AM, Bley, Stefan wrote: > 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? If in.read() returns -1 it means that the stream has no more data in it. Tomcat's FormAuthenticator works out of the box. Have you modified it and/or placed a Valve, etc. in front of FormAuthenticator in your valve chain? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJShC7ZAAoJEBzwKT+lPKRYYeYP/348fUYckVoX9TAycuK8GsbQ EKPyR2nPjjaMjkKK55BriUsjtOL8tkRwU512dp3fHYK4Lx0IdsEsrWNYpvePXTNl 8F2xzpLY9KvQkCBH4S3itMjyi12/v6qW/4H1eiFxog+ugFNSKT+Lsmu5vkQPmCXr 8IFMMhulf9xJkdD2dnskIsyP9yKOOu/XXdnz0O79t20HkFSgm8ZKFFZzahxCAA2Y zdf0TSCAK46pbzpghfxY4cF+LCbj+JoM8nWZL7V/v9akArFxN5r5MFPC7d/U6AYc sPl87WYmkvNeMCdlMuxSyMHPGYT9EuEQFee0/v0a3TqENScNsNqWDI05SmuprMvb qvWKXnMVePiwUrq2qVFQZE4XyDg0GYwEoN2mWLQhcvtyH5DWQutSWarRL27CvIVL gPR8SNkxRVtdMlde+MK+jYmi1L+IAhXphw3eSZMmvo4RO9s5oxMTfQjNysCn/RgW 7k+RDHEP4xdKzOLRDF+fxY/bUsgcMCwNIUQfCQTC1oDhnDTodBt2WLcX7WZ2Sqcm PbfW3mWpmX3GweOS6vCLMVNlsbIDlUrKSI2v0Z4tc7dLkRpu3oUwRNOMcMbEtfyc xd85Bqa2pf5fJnrMDfIna+yoCTsbXtuR+cp7KCQDaEa4JRGFpIUQp6huBEHpQFsI ApOmfEmunQCGDzQiAbny =ZvhH -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org