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

$sampleRate and $regex edge cases should have error annotations

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Query 2020-11-02

    Description

      The $sampleRate match expression is allowed in validator expressions if it has an argument of 0 or 1. As such, each of these cases should have error annotations to allow for validation errors to be generated for $sampleRate. Additionally, a couple of edge cases for $regex (here  and here) should have error annotations as well.

      Attachments

        Activity

          People

            mihai.andrei@mongodb.com Mihai Andrei
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: