[FLE2] Empty encrypted range predicate returns all documents

XMLWordPrintableJSON

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

      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
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: