-
Notifications
You must be signed in to change notification settings - Fork 41.2k
ClassNotFoundException when management role is set without Spring Security #3888
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
Comments
okay so the trick is that I can see the |
A new bean |
That's #3445 |
Indeed. But that one is not marked for 1.3, and this one is (and is marked as a bug). I would argue we need to postpone this and downgrade it to an enhancement.l donut can be done properly in 1.4/2.0. |
Agreed |
Leaving this is will cause issues by trying to require spring security. See: spring-projects/spring-boot#3888
Unfortunately, the issue is outside of our control at this stage. The guard makes sure that the Essentially, our guard only works if we don't attempt to bind any element of the @philwebb we can workaround the issue by having our own enum for |
@snicoll I've gone with the enum option. Ideally we wouldn't change this in 1.4 but a custom was hit by the issue. |
Rather than a sample that acts as an integration test can we please use the test that I've started to craft? It reproduces the exact same thing. If you agree I can replace that. |
Yes please, @snicoll |
Reopen to remove the sample and merge the integration test instead |
To reproduce, create a vanilla app with the actuator (no Spring Security). It works fine but if you specify
management.security.role
you get thisThe text was updated successfully, but these errors were encountered: