Dan Rollo created SHIRO-413:
-------------------------------
Summary: init() method is not called on class that implements
org.apache.shiro.util.Initializable
Key: SHIRO-413
URL: https://issues.apache.org/jira/browse/SHIRO-413
Project: Shiro
Issue Type: Bug
Components: Configuration
Affects Versions: 1.2.1
Reporter: Dan Rollo
Priority: Critical
Classes configured in shiro.ini that implement the "Initializable" interface
should automatically have their "init()" methods called. It appears this call
is not always occurring. Example below:
public class WaffleNegotiateAuthFilter extends BasicHttpAuthenticationFilter
implements Initializable
{
...
private final NegotiateSecurityFilter negotiateFilter;
public WaffleNegotiateAuthFilter() {
negotiateFilter = new NegotiateSecurityFilter();
}
@Override
protected void onFilterConfigSet() throws Exception {
negotiateFilter.init(getFilterConfig());
}
/**
* Initializes this object.
*
* @throws org.apache.shiro.ShiroException
* if an exception occurs during initialization.
*/
public void init() throws ShiroException {
try {
super.init(getFilterConfig());
} catch (ServletException e) {
throw new ShiroException(e);
}
}
...
I still do not see the init() method being called.
See this thread for more details:
http://shiro-user.582556.n2.nabble.com/AuthenticatingFilter-lifecycle-when-used-in-urls-td7578146.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira