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

redact should not convert BSONArray into BSONObj

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.6, 4.4.11, 5.1.0-rc0
    • None
    • Fully Compatible
    • ALL
    • v5.2, v5.0, v4.4
    • Security 2021-06-14, Security 2021-06-28

    Description

      Wrapping a BSONArray object with redact changes its type to BSONObj which means it gets logged in

      {0:"value0", 1:"value1", ...}

      format rather than ["value0", "value1", ...] format. This makes it a bit harder to parse the logs and might create inconsistencies in format between redacted and non-redacted arrays or depending on whether the arrays are nested.

      Attachments

        Issue Links

          Activity

            People

              mark.benvenuto@mongodb.com Mark Benvenuto
              irina.yatsenko@mongodb.com Irina Yatsenko
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: