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

redact should not convert BSONArray into BSONObj

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.6, 4.4.11, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v5.2, v5.0, v4.4
    • Security 2021-06-14, Security 2021-06-28

      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.

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

              Created:
              Updated:
              Resolved: