KaotoIO / kaoto-backend

Backend for the Kaoto project to provide an easy to use integration framework based on Apache Camel.
Apache License 2.0
75 stars 32 forks source link

[BUG] Cannot set correctly path parameters when there is more than one #454

Closed apupier closed 1 year ago

apupier commented 1 year ago

Describe the bug

The parameter filled is set at a random position

wrongPlaceForPathParam

To Reproduce Steps to reproduce the behavior:

  1. Open a Camel Route
  2. Add Avro component
  3. Open text editor to vizualize
  4. Select Avro node step and in config, set a value to Host
  5. it will place the value as last param position instead of the third

You can also try with Message Name, it will place at second position instead of last position.

Expected behavior

place the parameter at correct place in Camel URI

Logs If applicable, add logs to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Delawen commented 1 year ago

Related to https://github.com/KaotoIO/kaoto-backend/issues/451

Delawen commented 1 year ago

A problem to solve this is that the JSON that defines the camel connector does not specify the proper order of the parameters. So there's no programmatical way of knowing unless we add an exception on the code for this specific connector.