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

APIStrict validation is not performed for fields in inner structs in commands

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Minor Change
    • ALL
    • v6.3, v6.0, v5.0
    • QE 2023-02-20, QE 2023-03-06

    Description

      For example for unstable fields in UpdateOpEntry in update command, DeleteOpEntry in delete command, CollModIndex in collMod command, etc, the APIStrictError is not thrown when apistrict is set to true.

      This looks to be happening because this constructor of IDLParserContext doesn't set the value of _apiStrict to  that of predecessor.

      Confirmed this behavior in 6.0

      Attachments

        Activity

          People

            projjal.chanda@mongodb.com Projjal Chanda
            projjal.chanda@mongodb.com Projjal Chanda
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: