problem on theme error view after throttling event

308 views
Skip to first unread message

Alessandro Rocca

unread,
Jan 7, 2025, 1:27:24 PM1/7/25
to CAS Community
Hello everyone,
I am new to this community, and I am writing about a problem I don't understand. Here's my issue:
I tried to customize the error page error/423.html with a specific thematic design.
During a login attempt, my theme was applied correctly.
However, after a throttling event, the error page reverted to the default theme. Below, I will share some log fragments, and I would greatly appreciate your kind assistance.


AFTER THROTTLING EVENT

2025-01-07 16:49:25,801 WARN [org.apereo.cas.throttle.DefaultThrottledRequestResponseHandler] - <Access Denied for user [###] from IP Address [###]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.ChainingThemeResolver] - <Attempting to resolve theme via [CookieThemeResolver]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.ChainingThemeResolver] - <Attempting to resolve theme via [SessionThemeResolver]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.ChainingThemeResolver] - <Attempting to resolve theme via [RequestHeaderThemeResolver]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.ChainingThemeResolver] - <Attempting to resolve theme via [RegisteredServiceThemeResolver]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.RegisteredServiceThemeResolver] - <No service is found in the request context. Falling back to the default theme [cas-theme-default]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.RegisteredServiceThemeResolver] - <Storing theme [cas-theme-default] as a request attribute under [theme]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.ChainingThemeResolver] - <Attempting to resolve theme via [FixedThemeResolver]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.ChainingThemeResolver] - <No specific theme could be found. Using default theme [cas-theme-default]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.ThemeViewResolver$Factory] - <Creating theme view resolver based on theme [cas-theme-default]>
2025-01-07 16:49:25,819 TRACE [org.apereo.cas.services.web.ThemeViewResolver] - <Attempting to resolve view [error/423] via locale [it_IT]>
2025-01-07 16:49:25,821 TRACE [org.apereo.cas.services.web.ThemeViewResolver] - <Attempting to locate theme location at [classpath:/templates/cas-theme-default/error/423.html]>

Alessandro Rocca

unread,
Jan 8, 2025, 9:10:24 AM1/8/25
to CAS Community, Alessandro Rocca
my version is 6.6.7 and in debugging i will identify that this class "org.apereo.cas.throttle.DefaultThrottledRequestResponseHandler" seems to clean the service information in context before calling "response.sendError(423, msg);"

anyone have any suggestions?
Reply all
Reply to author
Forward
0 new messages