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

camel-aws2-sqs: create queue logic is susceptible to TOC/TOU errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.4, 3.6.0
    • 3.7.0
    • camel-aws2
    • None
    • Unknown

    Description

      The AWS v2 SQS component has a time-of-check / time-of-use bug when creating queues. Currently, the code checks if the queue exists and, if not, creates it.

      However, if another application or thread creates the queue in between the check and the creation, the component fails and the startup is aborted.

       

      IMHO, a better approach would be to - in case of an exception - check if the queue hasn't been created before aborting.

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: