Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15239

camel-velocity header option does not conform to documentation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.1, 3.5.0
    • Component/s: camel-velocity
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

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

       

       

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              bocamel John Yin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: