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

Decoding of $uuid fields from extended JSON should respect UuidRepresentation

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11
    • Component/s: BSON
    • Labels:
      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

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

                Dates

                Created:
                Updated:
                Resolved: