[
https://issues.apache.org/jira/browse/CAMEL-8962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14625908#comment-14625908
]
Chris Pimlott edited comment on CAMEL-8962 at 7/14/15 5:19 PM:
---------------------------------------------------------------
Okay, but how is a user to know that's not a valid name? There's nothing
suggesting it shouldn't work. I didn't go looking for this bug, that's the
actual velocity URI that we were using. With the error message given it was
really confusing as to why it wasn't working.
was (Author: pimlottc):
Okay, but how is a user to know that's not a valid name? There's nothing
suggesting it shouldn't work.
> 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
> Affects Versions: 2.15.2
> Reporter: Chris Pimlott
> Assignee: Claus Ibsen
>
> Specifying the a velocity template via the {{CamelVelocityResourceUri}} does
> not work correctly if the {{velocity:}} URI 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)