You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Peter Van den Bosch (JIRA)" <ji...@apache.org> on 2018/08/07 08:59:00 UTC
[jira] [Created] (CAMEL-12713) relative paths can remove scheme
from xslt URI
Peter Van den Bosch created CAMEL-12713:
-------------------------------------------
Summary: relative paths can remove scheme from xslt URI
Key: CAMEL-12713
URL: https://issues.apache.org/jira/browse/CAMEL-12713
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.22.0
Reporter: Peter Van den Bosch
When using relative paths in an XSLT referenced from another one, the used URI scheme may be ignored.
e.g. in case of an XSLT specified by URI "classpath:location/master.xsl", that includes another one: <xsl:include href="../child.xsl"/>
In this case, the URI of child.xsl is resolved as just "child.xsl" instead of "classpath:child.xsl", omitting the URI scheme.
The cause is XsltUriResolver, in which FileUtil.compactPath() is used to calculate the relative URI, but this call ignores the colon separator and considers "classpath:location" as a single path part.
I'm creating a pull request which passes the URI without scheme to FileUtil.compactPath().
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)