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

BSON decoder should ignore uuidRepresentation when decoding Binary subtype 4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6
    • BSON
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: