Skip to content

WebLogic applies the ErrorPageFilter in the wrong order #2643

Closed
@bbrouwer

Description

@bbrouwer

WebLogic bug 20493506 : WLS 12.1.2 -SERVLET 3 ADDFILTER ADDS FILTERS IN WRONG ORDER

Due to this bug, when using Spring boot in WebLogic 12c, authentication and authorization errors come back as 500 error codes, rather than 401 or 403. This can make it impossible to log into an app using Basic Auth.

I got around the issue by setting up an error page in the web.xml of my app and removing the ErrorPageFilter like this in the SpringBootServletInitializer subclass:

protected WebApplicationContext run(SpringApplication application) {
    application.getSources().remove(ErrorPageFilter.class);
    return super.run(application);
}

Oracle has fixed the bug and a patch should soon be available for 12.1.2 and 12.1.3. I just wanted to report this here in case anyone else ran into this issue. I don't think Spring Boot should do anything to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions