You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alessandro Ballini (JIRA)" <ji...@apache.org> on 2017/05/16 12:56:04 UTC

[jira] [Created] (OAK-6222) LoginContextProviderImpl Bug on Oracle Weblogic

Alessandro Ballini created OAK-6222:
---------------------------------------

             Summary: LoginContextProviderImpl Bug on Oracle Weblogic
                 Key: OAK-6222
                 URL: https://issues.apache.org/jira/browse/OAK-6222
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core
    Affects Versions: 1.6.1
            Reporter: Alessandro Ballini


Oak does not start under Weblogic, a bug inside class
org.apache.jackrabbit.oak.security.authentication.LoginContextProviderImpl
blocks start.

in particular inside method getConfiguration() line 142:
I added fix,  a two lines commented by //FIX Alessandro
WebLogic throws a Runtime Exception not a Security Exception and inside catch there was not loginconfig==null 

try {
    loginConfig = Configuration.getConfiguration();
    // NOTE: workaround for Java7 behavior (see OAK-497)
    if (loginConfig.getAppConfigurationEntry(appName) == null) {
              loginConfig = null;
     }
} catch (Throwable e) {//(SecurityException) //FIX Alessandro 
     loginConfig = null;  //FIX Alessandro
     log.debug("Failed to retrieve login configuration: using default. " + e);
}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)