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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org

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

Joachim Martin edited comment on SOLR-1656 at 7/14/10 5:14 PM:
---------------------------------------------------------------

I'm having a similar problem with using XInclude to import a transformers.js script file in DataImportHandler:

    <script xmlns:xi="http://www.w3.org/2001/XInclude">
        <xi:include parse="text" href="file:transformers.js"/>
    </script>

At runtime, the XML parser looks for this in my solr directory, not parallel to my db-data-config.xml (in the core/conf directory).

Having the source for script transformers in a separate js file allows me to use an IDE to check syntax, etc- very helpful.

[I'm assuming this is the same problem, but not sure]

      was (Author: [hidden email]):
    I'm having a similar problem with using XInclude to import a transformers.js script file in DataImportHandler:

    <script xmlns:xi="http://www.w3.org/2001/XInclude">
        <xi:include parse="text" href="file:transformers.js"/>
    </script>

At runtime, the XML parser looks for this in my solr directory, not parallel to my db-data-config.xml (in the core/conf directory).

Having the source for script transformers in a separate js file allows me to use an IDE to check syntax, etc- very helpful.
 

> 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
>         Attachments: SOLR-1656_Support_SAX_SystemId_via_wrapping_InputStream.patch
>
>
> 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.


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