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

Camel-telegram wrongly parse chatId from headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.4.4, 3.6.0
    • camel-telegram
    • None
    • I used camel-telegram inside camel-kafka-connector and with Strimzi together on oc3.11.

    • Unknown

    Description

      There is an issue when I create KafkaStreams app which get messages sent from telegram, transform it and sent back to telegram, camel-telegram cannot parse chatId from header - https://gist.github.com/Frawless/564623a3fffb258a036f424e09402dc5

       

      The problem is on this line I think - https://github.com/apache/camel/blob/camel-3.5.0/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/TelegramProducer.java#L83  I have tried to remove the cast and instead of it use String.valueOf()and it's working fine for me. However, I am not sure if this suitable solution (maybe there is something better already implemented in camel).

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              jstejska Jakub Stejskal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: