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

BSON decoder should ignore uuidRepresentation when decoding Binary subtype 4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6
    • Component/s: BSON
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change

      Description

      The current behavior of the BSON decoder is to apply the rules for uuidRepresentation whenever it decodes a BSON Binary with subtype 3 or 4. It should ignore uuidRepresentation when the subtype is 4.

      This bug only applies when the application has set uuidRepresentation to javaLegacy or csharpLegacy, but the database returns BSON Binary subtype 4 (standard). This should be very rare. standard and pythonLegacy (the default) use the same byte order.

      This is a minor backward breaking change in behavior to fix a bug. We'll put a warning in the changelog.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: