Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2263

Decoding of $uuid fields from extended JSON should respect UuidRepresentation

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.11
    • BSON
    • None

    Description

      When UuidRepresentation is UNSPECIFIED, the UUID should be loaded as a Binary subtype 4, else it should be loaded as a native UUID.


      Original Description

      Following this implementation of the new UUID specification (PYTHON-2152), we might need to change how we decode $uuid fields from extended JSON because this is not only a 'legacy' field name for PyMongo's extended JSON, but it is now also used by the server in logs (see DRIVERS-848).

      Attachments

        Issue Links

          Activity

            People

              prashant.mital Prashant Mital (Inactive)
              prashant.mital Prashant Mital (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: