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

Query analysis should fail if querying for constant outside of the bounds of the index

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QO 2022-08-22

      Encrypted fields always have a min and max bounds for range indexes. Query analysis should fail when querying for a value outside of this range.

      Example, let's say age has a min of 0 and a max of 200. Here are some queries that should fail at analysis-time:

      {x: {$gt: 256}}
      {x: {$lt: -5}}
      

      This ticket will also require adding the min and max bounds to the encrypted metadata.

            Assignee:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Reporter:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: