-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71473/#review217703
-----------------------------------------------------------




embeddedwebserver/src/main/java/org/apache/ranger/server/tomcat/EmbeddedServer.java
Lines 459 (patched)
<https://reviews.apache.org/r/71473/#comment305015>

    If this code is identical to code in PropertiesUtil.java (lines 75-99), 
please refactor PropertiesUtil.java such that a static 
PropertiesUtil.setTrustStore() encapsulates it. Then, it may called from here 
and code duplication may be avoided.
    Also, in PropertiesUtil.java, there is a special treatment if 
trustStorePassword is set to "none". That seems to be missing from here.
    
    Please review


- Abhay Kulkarni


On Sept. 12, 2019, 11:33 a.m., Pradeep Agrawal wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/71473/
> -----------------------------------------------------------
> 
> (Updated Sept. 12, 2019, 11:33 a.m.)
> 
> 
> Review request for ranger, Ankita Sinha, bhavik patel, Gautam Borad, Abhay 
> Kulkarni, Madhan Neethiraj, Mehul Parikh, Mugdha Varadkar, Nikhil P, Nitin 
> Galave, Ramesh Mani, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-2567
>     https://issues.apache.org/jira/browse/RANGER-2567
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> ** Problem Statement: ** Ranger fails to connect wired SSL through configured 
> ranger truststore file. Currently it works when solr certificate is added in 
> jdk ca certs. Though in the file PropertiesUtil.java, truststore related 
> System properties has been provided its not being considered probably 
> Ranger's embeded tomcat server starts prior to load of Ranger's truststore 
> configs via PropertiesUtil.java.
> 
> ** Proposed Solution: ** Proposed patch contain changes in 
> EmbeddedServer.java file so that truststore related configs can be 
> initialized prior to Ranger's embeded tomcat server start.
> 
> 
> Diffs
> -----
> 
>   embeddedwebserver/pom.xml 8574c5721 
>   
> embeddedwebserver/src/main/java/org/apache/ranger/server/tomcat/EmbeddedServer.java
>  b39212a79 
>   src/main/assembly/admin-web.xml 449a11243 
> 
> 
> Diff: https://reviews.apache.org/r/71473/diff/2/
> 
> 
> Testing
> -------
> 
> Without patch solr collection was failing and after the patch ranger is able 
> to create solr collection and ranger UI is able to fetch access audit records 
> from solr.
> 
> 
> Thanks,
> 
> Pradeep Agrawal
> 
>

Reply via email to