Skip to content
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

@ceefour

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.

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