Freddy Exposito created CXF-5572:
------------------------------------

             Summary: EHCacheManagerHolder returning wrong CacheConfiguration
                 Key: CXF-5572
                 URL: https://issues.apache.org/jira/browse/CXF-5572
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.7.10, 2.6.13
            Reporter: Freddy Exposito
            Priority: Minor


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)

Reply via email to