Skip to content

Filter installed ahead of spring security filters #677

@ageery

Description

@ageery

In EmbeddedWebApplicationContext.getServletContextInitializerBeans(), beans are ordered within their type but not across types, even if the underlying types are the same. This causes a problem if FilterRegistrationBean is used to define a filter (e.g., a Wicket filter). Because FilterRegistrationBean implements ServletContextInitializer, its filter is added to the list of initializers before the spring security filters, which are added as regular filters. When the application launches, the spring security filters are added after the other filters.

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