[
https://issues.apache.org/jira/browse/WW-5578?focusedWorklogId=987913&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-987913
]
ASF GitHub Bot logged work on WW-5578:
--------------------------------------
Author: ASF GitHub Bot
Created on: 19/Oct/25 10:33
Start Date: 19/Oct/25 10:33
Worklog Time Spent: 10m
Work Description: kusalk commented on PR #1377:
URL: https://github.com/apache/struts/pull/1377#issuecomment-3419560046
Good call, interceptors can be used to enforce auth/security and so failing
fast is indeed desirable. If users have a genuine need for an optionally loaded
interceptor, then we should implement some mechanism to explicitly declare that.
Issue Time Tracking
-------------------
Worklog Id: (was: 987913)
Time Spent: 0.5h (was: 20m)
> Bad interceptor configuration is masked
> ---------------------------------------
>
> Key: WW-5578
> URL: https://issues.apache.org/jira/browse/WW-5578
> Project: Struts 2
> Issue Type: Bug
> Reporter: Martin
> Priority: Major
> Fix For: 7.2.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Interceptors which have initialization errors; e.g. maybe they are supplied
> by Spring and they have missing dependencies, are simply skipped instead of
> throwing a configuration error. See this code in
> org.apache.struts2.config.providers.InterceptorBuilder#constructInterceptorReference
> {code:java}
> try {
> Interceptor inter =
> objectFactory.buildInterceptor(config, refParams);
> result.add(new InterceptorMapping(refName, inter,
> refParams));
> } catch (ConfigurationException ex) {
> LOG.warn(new ParameterizedMessage("Unable to load
> config class {} at {} probably due to a missing jar, which might be fine if
> you never plan to use the {} interceptor",
> config.getClassName(), ex.getLocation(),
> config.getName()), ex);
> }
> {code}
> This could result in an only-partially working application. Failing fast is
> generally preferred in order to be certain that everything is actually
> working as its been configured.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)