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

Make CustomSlackHttpClient compatible with okhttp 3.x

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.9.0
    • Fix Version/s: 3.9.0
    • Component/s: camel-slack
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: