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

camel-slack: incorrect handling of error responses

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.4.3, 3.5.0
    • Component/s: camel-slack
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The consumer on the camel-slack component is not checking for error responses coming from the Slack API. Under some circumstances this can be problematic and hide messages that would be helpful for the user to diagnose problems on his/her setup of the app/bot account.

      One example that causes this problem is when the user creates a bot and does not give the bot the channels:read scope/permission. In this case the component throws a NullPointerException because it looks for an element on the json response that does not exist.

       

      It seems it can also happen when trying to read the channel messages without the channels:history scope, although, in this case the component does not throw any exception.

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              orpiske Otavio Rodolfo Piske

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment