You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2014/02/20 14:46:20 UTC

[jira] [Assigned] (CXF-5572) EHCacheManagerHolder returning wrong CacheConfiguration

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

Colm O hEigeartaigh reassigned CXF-5572:
----------------------------------------

    Assignee: Colm O hEigeartaigh

> EHCacheManagerHolder returning wrong CacheConfiguration
> -------------------------------------------------------
>
>                 Key: CXF-5572
>                 URL: https://issues.apache.org/jira/browse/CXF-5572
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.6.13, 2.7.10
>            Reporter: Freddy Exposito
>            Assignee: Colm O hEigeartaigh
>            Priority: Minor
>             Fix For: 3.0.0, 2.7.11, 2.6.14
>
>         Attachments: indexpatch.diff
>
>
> Hi All,
> EHCacheManagerHolder.getCacheConfiguration() is returning wrong CacheManager. For example, in the key="org.apache.cxf.ws.security.tokenstore.TokenStore-903593607" it will try to look for existing 'org.apache.cxf.ws.security.tokenstore.TokenStor' due to the index used. 
> This is making CXF to use the default ehcache configuration instead of the expected specific one for 'org.apache.cxf.ws.security.tokenstore.TokenStore' in the cxf-ehcache.xml config file.
> Besides, as the hash code part of the key can have a dash at the beginning (Ex: "org.apache.cxf.ws.security.tokenstore.TokenStore--903593607") indexOf should be used instead of lastIndexOf .
> I am attaching a patch.
> Thank,
> Freddy



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)