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

(Updated Jan. 27, 2017, 3:24 p.m.)


Review request for Ambari, Oliver Szabo and Robert Nettleton.


Changes
-------

Use the suggested classes instead of the deprecated ones in BouncyCastle to 
create a key store if it doesn't exists


Bugs: AMBARI-19723
    https://issues.apache.org/jira/browse/AMBARI-19723


Repository: ambari


Description
-------

If Log Search portal uses SSL only for solr (no https protocol is set for the 
portal, or to communicate with ambari) then it's not working, as nothing 
enforces the keystore / truststore passwords to load. Loading these passwords 
should not be enforced only by loading the SSLContext, it should be done if 
there is a keystrore / truststore location specified - i.e. the portal uses SSL.

Also done some refactoring:
- moved file operations to FileUtil from LogSearch
- moved keystore createion to SSLUtil from LogSearch


Diffs (updated)
-----

  ambari-logsearch/ambari-logsearch-portal/pom.xml 4bba464 
  
ambari-logsearch/ambari-logsearch-portal/src/main/java/org/apache/ambari/logsearch/LogSearch.java
 88cc8bb 
  
ambari-logsearch/ambari-logsearch-portal/src/main/java/org/apache/ambari/logsearch/util/FileUtil.java
 f7330fa 
  
ambari-logsearch/ambari-logsearch-portal/src/main/java/org/apache/ambari/logsearch/util/SSLUtil.java
 e0111e7 

Diff: https://reviews.apache.org/r/55981/diff/


Testing
-------

Tested on local cluster.


Thanks,

Miklos Gergely

Reply via email to