[ 
https://issues.apache.org/jira/browse/SOLR-4394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13610991#comment-13610991
 ] 

ludovic Boutros commented on SOLR-4394:
---------------------------------------

Hi Hoss Man,

Since the commit in the branch 4x, I have some trouble to run my unit tests 
which extends the SolrJettyTestBase.
The TEST_KEYSTORE variable initialization is crashing with an NPE in the loop:

{code:title=ExternalPaths.java|borderStyle=solid}
static String determineSourceHome() {
    // ugly, ugly hack to determine the example home without depending on the 
CWD
    // this is needed for example/multicore tests which reside outside the 
classpath
    File file;
    try {
      file = new File("solr/conf");
      if (!file.exists()) {
        file = new 
File(Thread.currentThread().getContextClassLoader().getResource("solr/conf").toURI());
      }
    } catch (Exception e) {
      // If there is no "solr/conf" in the classpath, fall back to searching 
from the current directory.
      file = new File(".");
    }
    File base = file.getAbsoluteFile();
    while (!new File(base, "solr/CHANGES.txt").exists()) {
      base = base.getParentFile();
    }
    return new File(base, "solr/").getAbsolutePath();
  }
{code}

Could you please create a public function getKeyStore that I could bypass like 
the getSolrHome function ?





                
> Add SSL tests and example configs
> ---------------------------------
>
>                 Key: SOLR-4394
>                 URL: https://issues.apache.org/jira/browse/SOLR-4394
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>             Fix For: 4.2, 5.0
>
>         Attachments: SOLR-4394.patch, SOLR-4394.patch, SOLR-4394.patch, 
> SOLR-4394__phase2.patch
>
>
> We should provide some examples of running Solr+Jetty with SSL enabled, and 
> have some basic tests using jetty over SSL

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to