Skip to content
This repository was archived by the owner on Feb 7, 2018. It is now read-only.
This repository was archived by the owner on Feb 7, 2018. It is now read-only.

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

Description

@ceefour
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions