assimbly / runtime

Java & REST API's for creating and running integrations
Apache License 2.0
17 stars 3 forks source link

[Velocity]Use of ${headers} fails #216

Closed Hooghof closed 1 week ago

Hooghof commented 1 month ago

The use of ${headers} leads to http 500 error or empty response. The 500 error exists if the flow transport type is synchronous. The empty response if the transport type is queues. In both case the tracing is not right. If synchronous, there is no tracing at all. If queues, the first and last steps are missing.

It is reproduced in this flow: Instance: next Tenant: Microscope: Flow: HeadersInVelocity

In Dovetail 4.14.8/Camel 2and 4.16.0/Camel 3, ${headers} put all headers in the velocity component.

skin27 commented 1 month ago

Seems a bug created a ticket on Camel jira:

https://issues.apache.org/jira/browse/CAMEL-20802

skin27 commented 1 month ago

Set the CamelVelocityTemplate header as constant, instead of simple. For this this to test, the frontend needs to be rebuild/redeployed