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

Range-based window [+N, unbounded] can tassert

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0, 6.0.7, 5.0.19
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v6.2, v6.0, v5.0
    • 0

      Background: In setWindowFields, you can use window: {range: [lower, upper]} to define a window in terms of the values in the collection.  We only support numbers and dates.  If setWindowFields finds a value with the wrong type, it uasserts.

      However, our fuzzer found a case where it tasserts instead of uasserts.  If the range is [+N, unbounded], and the input has an unexpected type, we can tassert when computing the right endpoint for the 'unbounded' part.

            Assignee:
            david.percy@mongodb.com David Percy
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: