The reason that you see a redirect is most of the time credentials are posted to the request and Spring Security follows the
PRG pattern.
It occurs when the browser kills the socket connection before the response is written out entirely. I have seen this error when there are connectivity problems between the browser and the server (often when firewalls or flaky wireless connections are involved). Have you tried pinging to see there is any oddities? If you remove Spring Security all together does the error still occur?
After re-reading your original post I noticed that your authentication mechanism was looking at the request object's principal. I assume that the user has already authenticated from something external to spring security? Are you wanting then to use Spring Security for authorization and the authentication is already done? If so, you may want to take a look at the
Pre-Auth support since it appears the principal is already populated in the request object. This would allow for the code to easily continue with the filterchain rather than redirecting or forwarding.
HTH,
Rob Winch