Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-457

Reset "context" attribute on the connection class after the request finished

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Core
    • None

    Description

      "context" attribute on the connection class is there to allow developers to save temporary data on the connection class for the duration of a request.

      It's commonly used and accessed in places such as "parse_body" and "parse_error".

      Because of the oversight, this attribute is currently not reset after the request has finished and the value of context is available across multiple requests.

      This is bad and in-directly encourages bad practices like persisting some state across multiple requests.

      The goal of this issue is to fix that and reset the context after the request has finished. We will also need to update the affected code, because sadly, some drivers rely on this broken and bad behavior.

      Attachments

        Activity

          People

            kami Tomaz Muraus
            kami Tomaz Muraus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: