[jira] Commented: (SOLR-1656) XInclude's are resolved relative CWD, not instance dir

2009-12-15 Thread Hoss Man (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12791130#action_12791130
 ] 

Hoss Man commented on SOLR-1656:


bq. I may be very wrongly informing but using ...

I'm sure you are correct, but as i mentioned, Config only has an InputStream 
when it instantiates the DocumentBuilder. (hence: non trivial fix)

 XInclude's are resolved relative CWD, not instance dir
 --

 Key: SOLR-1656
 URL: https://issues.apache.org/jira/browse/SOLR-1656
 Project: Solr
  Issue Type: Bug
Affects Versions: 1.4
Reporter: Hoss Man

 As noted on the mailing list, when an XInclude in a config files refrences a 
 relative path, it's resolved relative the CWD of the servlet container, and 
 not the instanceDir of the core...
  
 http://old.nabble.com/using-Xinclude-with-multi-core-to26548400.html#a26548400

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-1656) XInclude's are resolved relative CWD, not instance dir

2009-12-14 Thread Hoss Man (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12790448#action_12790448
 ] 

Hoss Man commented on SOLR-1656:


The probably is probably caused by the default behavior of DocumentBuilder when 
it doesn't know the filename of the XML it is parsing -- Config.java only 
provides an InputStream

 XInclude's are resolved relative CWD, not instance dir
 --

 Key: SOLR-1656
 URL: https://issues.apache.org/jira/browse/SOLR-1656
 Project: Solr
  Issue Type: Bug
Affects Versions: 1.4
Reporter: Hoss Man

 As noted on the mailing list, when an XInclude in a config files refrences a 
 relative path, it's resolved relative the CWD of the servlet container, and 
 not the instanceDir of the core...
  
 http://old.nabble.com/using-Xinclude-with-multi-core-to26548400.html#a26548400

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-1656) XInclude's are resolved relative CWD, not instance dir

2009-12-14 Thread Paul Libbrecht (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12790460#action_12790460
 ] 

Paul Libbrecht commented on SOLR-1656:
--

I may be very wrongly informing but using

 i = new InputSource(theInputStream);
 i.setSystemId(file.toURL().getExternalForm());

is a recipe that has worked many times and allows relative resolution.

  new InputSource(file.toURL())

should as well.

paul


 XInclude's are resolved relative CWD, not instance dir
 --

 Key: SOLR-1656
 URL: https://issues.apache.org/jira/browse/SOLR-1656
 Project: Solr
  Issue Type: Bug
Affects Versions: 1.4
Reporter: Hoss Man

 As noted on the mailing list, when an XInclude in a config files refrences a 
 relative path, it's resolved relative the CWD of the servlet container, and 
 not the instanceDir of the core...
  
 http://old.nabble.com/using-Xinclude-with-multi-core-to26548400.html#a26548400

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.