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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • ALL
    • v6.3, v6.0, v5.0
    • QE 2023-02-20, QE 2023-03-06

      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

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

              Created:
              Updated:
              Resolved: