camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pimlott (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-8962) CamelVelocityResourceUri does not work when velocity URL contains URL encoded characters
Date Mon, 13 Jul 2015 22:33:04 GMT

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

Chris Pimlott updated CAMEL-8962:
---------------------------------
    Description: 
Specifying the a velocity template via the {{CamelVelocityResourceUri}} does not work correctly
if the {{velocity:}} used contains a character that is URL encoded.

For example:

{code}
from("direct:input")
.setHeader(VelocityConstants.VELOCITY_RESOURCE_URI).constant("velocity/letter.vm")
.to("velocity:[template-in-header]")
.to("mock:results");
{code}

Results in: java.io.FileNotFoundException: Cannot find resource: [template-in-header] in classpath
for URI: [template-in-header]



  was:
Specifying the a velocity template via the {{CamelVelocityResourceUri}} does not work correctly
if the {{velocity:}} used contains a character that is URL encoded.

For example:

{code}
                from("direct:input")
                .setHeader(VelocityConstants.VELOCITY_RESOURCE_URI).constant("velocity/letter.vm")
                .to("velocity:[template-in-header]")
                .to("mock:results");
{code}

Results in: java.io.FileNotFoundException: Cannot find resource: [template-in-header] in classpath
for URI: [template-in-header]




> CamelVelocityResourceUri does not work when velocity URL contains URL encoded characters
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8962
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8962
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-velocity
>            Reporter: Chris Pimlott
>
> Specifying the a velocity template via the {{CamelVelocityResourceUri}} does not work
correctly if the {{velocity:}} used contains a character that is URL encoded.
> For example:
> {code}
> from("direct:input")
> .setHeader(VelocityConstants.VELOCITY_RESOURCE_URI).constant("velocity/letter.vm")
> .to("velocity:[template-in-header]")
> .to("mock:results");
> {code}
> Results in: java.io.FileNotFoundException: Cannot find resource: [template-in-header]
in classpath for URI: [template-in-header]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message