Skip to content

Wrong check at SwitchUserFilter#setSwitchFailureUrl() #4198

@martin-g

Description

@martin-g

Summary

org.springframework.security.web.authentication.switchuser.SwitchUserFilter#setSwitchFailureUrl() makes a check for non-empty this.switchUserUrl instead of the passed switchFailureUrl. The error message says: "switchFailureUrl cannot be empty and must be a valid redirect URL" so I believe the check is wrong (copy/paste error ?!).

Actual Behavior

Checks for non-empty this.switchUserUrl

Expected Behavior

Should check for non-empty switchFailureUrl

Configuration

Irrelevant

Version

4.1.4

Sample

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