ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wu.kehua (Jira)" <j...@apache.org>
Subject [jira] [Created] (RANGER-2560) Solve the problem of the order of the configuration items of the Solr plugin
Date Thu, 05 Sep 2019 11:57:00 GMT
wu.kehua created RANGER-2560:
--------------------------------

             Summary: Solve the problem of the order of the configuration items of the Solr
plugin
                 Key: RANGER-2560
                 URL: https://issues.apache.org/jira/browse/RANGER-2560
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
            Reporter: wu.kehua
            Assignee: wu.kehua
             Fix For: 2.1.0


There is one problem in the method "init()" of class "RangerSolrAuthorizer".

Firstly, the code logic is to get the parameters "useProxyIP", "useProxyIP","solrAppName"
and "solrAppName" from RangerConfiguration, as follows:

 
{code:java}
useProxyIP = RangerConfiguration.getInstance().getBoolean(useProxyIP = RangerConfiguration.getInstance().getBoolean(
PROP_USE_PROXY_IP, useProxyIP);
proxyIPHeader = RangerConfiguration.getInstance().get( PROP_PROXY_IP_HEADER, proxyIPHeader);
// First get from the -D property
solrAppName = System.getProperty("solr.kerberos.jaas.appname", solrAppName);
// Override if required from Ranger properties
solrAppName = RangerConfiguration.getInstance().get( PROP_SOLR_APP_NAME, solrAppName);
{code}
But after that, the code logic is to call "solrPlugin.init()" to parse the configuration file,
as follows:

 
{code:java}
configuration.addResourcesForServiceType(serviceType); 
{code}
Due to the opposite logic, the values of the parameters "useProxyIP", "useProxyIP","solrAppName"
and "solrAppName" are not available.

 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message