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

Implement error truncation for deeply nested generated errors

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • Query 2020-10-05, Query 2020-10-19

      Implement error truncation for deeply nested generated errors as described in the design document. In particular, there are two approaches to implementing this. The simplest approach is to simply call ‘validateBSON()’ on the finished error to check whether the depth is valid, and if it isn’t, discard the error and simply report ‘truncated: true’ at the top level and add a message saying ‘generated BSON was too deep’. A more involved approach would be to track the depth of the generated error and stop generating error details past a certain depth to return at least a partially complete error to the user.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: