You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/07/24 15:47:48 UTC

[jira] [Resolved] (CAMEL-6572) Validator component - Loading resource on classpath with relative paths doesnt work in OSGi

     [ https://issues.apache.org/jira/browse/CAMEL-6572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-6572.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.7
    
> Validator component - Loading resource on classpath with relative paths doesnt work in OSGi
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6572
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6572
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.10.7, 2.11.2, 2.12.0
>
>
> When loading a resource on the classpath with the validator component that uses xsd that imports other xsd's, and they import xsd using relative paths with ../.. to go back in the path, then that fails
> an example
> {code}
> Caused by: java.io.FileNotFoundException: Cannot find resource in classpath for URI: schema/../../../structures/2.0/structures.xsd
> 	at org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:106)
> {code}

--
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