Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-170

REST Endpoint Example to allow cross-origin requests is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Won't Fix
    • None
    • None
    • None
    • 0

    Description

      HTTPBuilder is not thread safe by nature, which can create issues for clients who don't create a new HTTPBuilder instance on each request. At least one of our examples in the documentation uses a shared HTTPBuilder object that isn't recreated on each request. We should probably use the AsyncHTTPBuilder for this particular example, and create a new builder object within the method, rather than at the base of the script.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jcarter Jonny Carter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: