Skip to content

invalid token provokes IllegalStateException: Cannot create a session after the response has been committed #4

@davidmoten

Description

@davidmoten

In WsFederationFilter.authenticateWithToken need to call request.getSession() so that a session has been created before any response.sendError is called. The reason is that this.writeSessionToken(httpRequest, principal) when called after response.sendError is called then provokes an IllegalStateException.

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