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

APIStrict validation is not performed for fields in 'indexes' array in createIndex command

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Storage Execution
    • ALL

    Description

      SERVER-73872 fixes the bug of apistrict validation not happening for fields in inner structs in commands. However this issue still remains for fields in 'indexes' array in createIndex command. This is because theĀ 'NewIndexSpec' struct is not parsed and validated by the generated idl code but stored as bsonobj. The bsonobj is manually validated later but the apistrict check for the unstable fields in that struct is not being done.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            projjal.chanda@mongodb.com Projjal Chanda
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: