You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2020/06/24 15:37:00 UTC
[jira] [Commented] (CAMEL-15239) camel-velocity header option does
not conform to documentation
[ https://issues.apache.org/jira/browse/CAMEL-15239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17143938#comment-17143938 ]
Andrea Cosentino commented on CAMEL-15239:
------------------------------------------
This should be true for other templating components.
> camel-velocity header option does not conform to documentation
> --------------------------------------------------------------
>
> Key: CAMEL-15239
> URL: https://issues.apache.org/jira/browse/CAMEL-15239
> Project: Camel
> Issue Type: Bug
> Components: camel-velocity
> Affects Versions: 3.4.0
> Reporter: John Yin
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 3.4.1, 3.5.0
>
>
> The example given in the documentation does not work in 3.4.0:
> from("direct:in"). setHeader("CamelVelocityResourceUri").constant("path/to/my/template.vm"). to("velocity:dummy");
> One has to use the allowTemplateFromHeader in the endpoint:
> from("direct:in"). setHeader("CamelVelocityResourceUri").constant("path/to/my/template.vm"). to("velocity:dummy?allowTemplateFromHeader=true");
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)