aws-dynamodb-session-tomcat icon indicating copy to clipboard operation
aws-dynamodb-session-tomcat copied to clipboard

Infinite loop if HttpRequest.getSession(false) called during HttpSessionListener::sessionCreated()

Open ceefour opened this issue 8 years ago • 1 comments

public class MySessionListener implements HttpSessionListener {

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        ((ServletRequestAttributes) RequestContextHolder
                        .getRequestAttributes()).getRequest().getSession(false);
    }

This causes infinite loop since getSession(false) tries to create a new session instead of directly returning null.

ceefour avatar Aug 01 '17 09:08 ceefour

This project has been archived. Please see the README.md for more detail on alternative projects.

hyandell avatar Feb 06 '18 21:02 hyandell