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

Improve error messages for non-finite values in QE Range create collection

    • Server Security
    • ALL

      For double, infinity and NaN are blocked for insert/find/update with an error message that says infinity and nan are not supported. For create collection, min and max, they are blocked because of precision range checks. Use of these values leads to a confusing error message
      "The number of decimal digits for minimum value of field 'val' must be less than or equal to precision" instead of one saying the values are not supported

      For decimal128, infinity, NaN, and -0.0 are blocked for insert/find/update with an error message

      For -0.0, the error message is: "Unable to convert negative Decimal128 to UInt128"

      For Infinity, the error message is: "Invalid lower bounds for Decimal128 precision, must be less than 170141183460469231731687303715884105727"

            Assignee:
            Unassigned Unassigned
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: