You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Les Hazlewood (JIRA)" <ji...@apache.org> on 2013/05/05 00:52:16 UTC

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

     [ https://issues.apache.org/jira/browse/SHIRO-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Les Hazlewood resolved SHIRO-383.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0
                   1.2.2

Fixed in Confluence and https://svn.apache.org/repos/asf/shiro/site
                
> 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
>             Fix For: 1.2.2, 1.3.0
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira