You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2018/07/07 00:19:00 UTC

[jira] [Resolved] (FC-226) ehcache masking security exceptions

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

Shawn McKinney resolved FC-226.
-------------------------------
    Resolution: Fixed

done

> ehcache masking security exceptions
> -----------------------------------
>
>                 Key: FC-226
>                 URL: https://issues.apache.org/jira/browse/FC-226
>             Project: FORTRESS
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Shawn McKinney
>            Assignee: Shawn McKinney
>            Priority: Major
>             Fix For: 2.0.1
>
>
> Need to add try/catch block around ehcache mgr instantiation because it is masking important exceptions like access control violations.
>         try
>         {
>             // 1. Construct an instance of Ehcache's CacheManager object.
>             // 2. Requires location of ehcache's config file as parameter.
>             // 3. The CacheManager reference then gets stored as member variable of this class instance.
>             mEhCacheImpl = new CacheManager( ClassUtil.resourceAsStream( cacheConfig ) );
>         }
>         catch(Exception e)
>         {
>             String error = "CacheMgr.init caught Exception=" + e.getMessage();
>             LOG.error( error );
>             throw new CfgRuntimeException( GlobalErrIds.FT_CACHE_NOT_CONFIGURED, error, e );
>         }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)