Github user uschindler commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/206#discussion_r42311681
  
    --- Diff: 
solr/contrib/extraction/src/java/org/apache/solr/handler/extraction/ExtractingRequestHandler.java
 ---
    @@ -79,6 +81,20 @@ public void inform(SolrCore core) {
               throw new SolrException(ErrorCode.SERVER_ERROR, e);
             }
           }
    +
    +      String parseContextConfigLoc = (String) 
initArgs.get(PARSE_CONTEXT_CONFIG);
    +      if (parseContextConfigLoc != null) {
    +        File parseContextConfigFile = new File(parseContextConfigLoc);
    +        if (parseContextConfigFile.isAbsolute() == false) {
    +          parseContextConfigFile = new 
File(core.getResourceLoader().getConfigDir(), parseContextConfigFile.getPath());
    --- End diff --
    
    Please dont create a file instance here, because with Zookeeper there is no 
config directory available. Just use the ResourceLoader methods to load the 
config file as InputStream (using RL#getResource()). Just pass this input 
stream to the XML parser.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to