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:36:00 UTC

[jira] [Assigned] (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:all-tabpanel ]

Andrea Cosentino reassigned CAMEL-15239:
----------------------------------------

    Assignee: Andrea Cosentino

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