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

Make CustomSlackHttpClient compatible with okhttp 3.x

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.9.0
    • 3.9.0
    • camel-slack
    • None
    • Unknown

    Description

      See discussion in Zulip about CustomSlackHttpClient here:

      https://camel.zulipchat.com/#narrow/stream/257298-camel/topic/CustomSlackHttpClient

      The slack-api-client is bound to okhttp 4.x and CustomSlackHttpClient seems to be an effort to make the component bin compatible with okhttp client 3.x. But the RequestBody.create method signature used is referencing the 4.x APIs instead of 3.x.

      Perhaps we should override and force okhttp 3.x in the component pom.xml and do the necessary bin compat tweaks in CustomSlackHttpClient? I'm no expert on okhttp or the slack-api-client so not sure if this can work reliably.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: