You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Dan Rollo (JIRA)" <ji...@apache.org> on 2012/08/14 23:54:38 UTC

[jira] [Created] (SHIRO-383) Member variable name incorrect (sessionDAO.activeSessionCache) in docs for: EnterpriseCacheSessionDAO

Dan Rollo created SHIRO-383:
-------------------------------

             Summary: Member variable name incorrect (sessionDAO.activeSessionCache) in docs for: EnterpriseCacheSessionDAO
                 Key: SHIRO-383
                 URL: https://issues.apache.org/jira/browse/SHIRO-383
             Project: Shiro
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 1.2.1
            Reporter: Dan Rollo


In the 'Session Management' docs, under heading: EnterpriseCacheSessionDAO, the example ini settings snippet following 'For example, in shiro.ini:' cause an error (http://shiro.apache.org/session-management.html#SessionManagement-%257B%257BEnterpriseCacheSessionDAO%257D%257D).


SEVERE: Exception sending context initialized event to listener instance of class org.apache.shiro.web.env.EnvironmentLoaderListener
org.apache.shiro.config.ConfigurationException: Property 'activeSessionCache' does not exist for object of type org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO.
	at org.apache.shiro.config.ReflectionBuilder.isTypedProperty(ReflectionBuilder.java:252)

I think the variable named used is incorrect:
sessionDAO.activeSessionCache

because no such field/setter exists.
However, changing the variable name to:
sessionDAO.activeSessionsCache

appears to work. For consistency, it should probably be changed everywhere it is used in that example snippet (3 places):

This:
#This implementation would use your preferred distributed caching product's APIs:
activeSessionCache = my.org.apache.shiro.cache.CacheImplementation

sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO
sessionDAO.activeSessionCache = $activeSessionCache

securityManager.sessionManager.sessionDAO = $sessionDAO

becomes this:
#This implementation would use your preferred distributed caching product's APIs:
activeSessionsCache = my.org.apache.shiro.cache.CacheImplementation

sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO
sessionDAO.activeSessionsCache = $activeSessionsCache

securityManager.sessionManager.sessionDAO = $sessionDAO

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira