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

MongoReplicaSetClient doesn't parse uuidRepresentation kwarg

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.9
    • 2.9.4
    • None
    • None

    Description

      MongoReplicaSetClient in PyMongo 2.9 forgets to set its uuid_subtype from the uuidRepresentation keyword argument. The correct answer in the examples below is "5", not "3".

      >>> MongoReplicaSetClient(replicaSet='replset', uuidRepresentation='javaLegacy').uuid_subtype
      3
      >>> MongoClient(replicaSet='replset', uuidRepresentation='javaLegacy').uuid_subtype
      5
      

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: