Clarify error message in server parameter parsing

XMLWordPrintableJSON

    • Server Security
    • Server Security 2026-08-28, Server Security 2026-09-11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This error code that is run when parsing a server parameter checks if the value of an element is a "list" or a "map". If so, it returns an error statement. The error message that is returned as a result is misleading and should be reworded to:

      1. Include the key and value of the failing element
      2. Not mention "map" as that does not exist in the BSON world

       

      As an example server parameter that would trigger this failure:

      "mirrorReads": {
                                  "maxTimeMS": 1000,
                                  "samplingRate": 0.01,
                                  "targetedMirroring": {
                                      "maxTimeMS": 1500,
                                      "samplingRate": 0.1,
                                      "tag": {
                                          "cacheState": "WARMING"
                                      }
                                  }
                              },
      

      Acceptance Criteria

      Modify the error statement as specified above to make it clearer what is failing and adhere to BSON terminology. Consider logging this to stdout in addition to being returned in the error status

            Assignee:
            Ananya Patil
            Reporter:
            Xuerui Fa
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: