Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5572

EHCacheManagerHolder returning wrong CacheConfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.13, 2.7.10
    • 2.7.11, 2.6.14, 3.0
    • None
    • None
    • Unknown

    Description

      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

      Attachments

        1. indexpatch.diff
          0.9 kB
          Freddy Exposito

        Activity

          People

            coheigea Colm O hEigeartaigh
            freddy.exposito Freddy Exposito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: