Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayStoreException when using Spring Security in a Servlet app without spring-security-web #28774

Closed
filiphr opened this issue Nov 22, 2021 · 0 comments
Assignees
Labels
type: regression A regression from a previous release
Milestone

Comments

@filiphr
Copy link
Contributor

filiphr commented Nov 22, 2021

Unfortunately I missed this problem earlier.

When running on Java 8 with spring-security, but without spring-security-web then there is an ArrayStoreException in the ErrorPageSecurityFilterConfiguration. This is caused by the work that was done for #26356. The ErrorPageSecurityFilterConfiguration should not use @ConditionalOnBean(WebInvocationPrivilegeEvaluator.class), but it should rather use @ConditionalOnBean(type = "org.springframework.security.web.access.WebInvocationPrivilegeEvaluator") or there should be a guard on the configuration class itself.

Most likely the same problem that exists for @ConditionalOnClass (#27846) exists for the @ConditonalOnBean as well.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 22, 2021
@wilkinsona wilkinsona changed the title ArrayStoreException on Java 8 when upgrading to Spring Boot 2.6 ArrayStoreException when using Spring Security in a Servlet app without spring-security-web Nov 22, 2021
@wilkinsona wilkinsona added type: regression A regression from a previous release and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 22, 2021
@wilkinsona wilkinsona added this to the 2.6.x milestone Nov 22, 2021
@mbhave mbhave self-assigned this Nov 22, 2021
@philwebb philwebb modified the milestones: 2.6.x, 2.6.1 Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression A regression from a previous release
Projects
None yet
Development

No branches or pull requests

5 participants