Skip to content

Assign distinct order values to Management customizers to prevent con… #45732

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

Conversation

naveenprasanth2
Copy link

Closes #45728

This PR fixes a bug where ManagementWebServerFactoryCustomizer and ManagementErrorPageCustomizer had the same getOrder() value, which could lead to non-deterministic customizer execution during application startup.

Changes made:

  • Updated ManagementWebServerFactoryCustomizer to return Ordered.HIGHEST_PRECEDENCE + 10
  • Updated ManagementErrorPageCustomizer to return Ordered.HIGHEST_PRECEDENCE + 11

This ensures deterministic order between the two customizers.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 31, 2025
@naveenprasanth2 naveenprasanth2 deleted the gh-45728-fix-customizer-order branch May 31, 2025 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ManagementWebServerFactoryCustomizer and ManagementErrorPageCustomizer should not have the same order
2 participants