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

[FLE2] Empty encrypted range predicate returns all documents

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QO 2022-10-31

      coll.find({age: {$gt: NumberInt(30), $lt: NumberInt(18)}}) 

      This query in the collection below returned the entire collection. 

      const docs = [
          {_id: 0, age: NumberInt(20)},
          {_id: 1, age: NumberInt(45)},
          {_id: 2, age: NumberInt(56)},
          {_id: 3, age: NumberInt(16)}
      ]; 

      However, this tassert statement should have thrown an error. 

       

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: