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

CamelVelocityResourceUri does not work when velocity URL contains URL encoded characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.15.2
    • None
    • camel-velocity
    • None
    • Unknown

    Description

      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:

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

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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            pimlottc Chris Pimlott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: