cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colm O hEigeartaigh (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5572) EHCacheManagerHolder returning wrong CacheConfiguration
Date Thu, 20 Feb 2014 17:46:32 GMT

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

Colm O hEigeartaigh resolved CXF-5572.
--------------------------------------

    Resolution: Fixed


Thanks for the patch - I opted to fix it in a slightly different way.

Colm.

> 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)

Mime
View raw message