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

$nin NULL on indexed property crashes the server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 4.2.0-rc3
    • Fix Version/s: 4.2.0-rc4, 4.3.1
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Steps To Reproduce:
      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']}});
    • Sprint:
      Query 2019-07-29
    • Linked BF Score:
      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

            Assignee:
            ian.boros Ian Boros
            Reporter:
            morkai ?ukasz Walukiewicz
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: