Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42291

$nin NULL on indexed property crashes the server

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical - P2 Critical - P2
    • 4.2.0-rc4, 4.3.1
    • 4.2.0-rc3
    • Querying
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Hide

      db.test.insertOne({_id: 'test'});
      db.test.findOne({_id: {$nin: [null, 'foo']}});

      Show
      db.test.insertOne({_id: 'test'}); db.test.findOne({_id: {$nin: [null, 'foo']}});
    • Query 2019-07-29
    • 0

    Description

      Specyfing null and another value in the $nin operator on an indexed property crashes the server. Works in 4.0.4.

      Attachments

        Activity

          People

            ian.boros@mongodb.com Ian Boros
            morkai ?ukasz Walukiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: