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

ObjectId.is_valid(None) returns True

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.7.1
    • 2.7.2, 3.0
    • None
    • None

    Description

      is_valid is supposed to return True if the input is a valid ObjectId, but it returns True for None, as well.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: