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

BSON decoder should ignore uuidRepresentation when decoding Binary subtype 4

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None
    • Minor Change

      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.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: