Assertion 10307 (bad object when --objcheck enabled) should display more information

XMLWordPrintableJSON

    • Server Security
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the check is simply:

        204              if ( cmdLine.objcheck && !js.valid() ) {
        205:                 massert( 10307 , "Client Error: bad object in message", false);
        206              }
      

      It would be helpful if we could display more information, like a truncated buffer, perhaps in hex+ascii, as well as any length and type information for each BSONElement.

            Assignee:
            [DO NOT USE] Backlog - Security Team
            Reporter:
            Ben Becker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: