Closed
Description
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.