Skip to content

SYNCOPE-1758 Avoid CAS servlet reinitialization in WA#1390

Open
frhack wants to merge 1 commit into
apache:4_1_Xfrom
frhack:fix/SYNCOPE-1758-wa-cas-refresh-listener-4_1_X
Open

SYNCOPE-1758 Avoid CAS servlet reinitialization in WA#1390
frhack wants to merge 1 commit into
apache:4_1_Xfrom
frhack:fix/SYNCOPE-1758-wa-cas-refresh-listener-4_1_X

Conversation

@frhack
Copy link
Copy Markdown

@frhack frhack commented May 17, 2026

This is the 4_1_X version of #1389, following the review feedback there.

The PR defines the WA-specific casConfigurationEventListener bean directly in WAContext, so it is picked up by Spring runtime, and keeps the same eager/non-lazy refresh listener contract as CAS.

The listener preserves CAS refresh/rebind behavior, but avoids manually invoking DispatcherServlet.init() during refresh. In Syncope WA that servlet has no ServletConfig at that point, which can trigger the IllegalStateException reported in SYNCOPE-1758.

Upstream CAS root cause fix: apereo/cas#8974

Tested with:

/tmp/maven/apache-maven-3.9.11/bin/mvn -pl wa/starter -am -Dtest=WACasConfigurationEventListenerTest -Dsurefire.failIfNoSpecifiedTests=false test

Define the WA-specific CAS configuration event listener in WAContext so it is loaded by Spring runtime, preserving refresh and rebind behavior while avoiding DispatcherServlet.init() without ServletConfig.

Tracks upstream root cause in apereo/cas#8974.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant