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

JSON.parse will fail if there is more than 1 line

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • v8.0, v7.0
    • Security 2024-09-30
    • 0

      In `log_rotate_command.test.js` JSON.parse() will fail if `audit.getAllLines()` returns more than 1 line since JSON.parse({...},{...}) is invalid.

      We should either accept more than 1 line and look for the atype `rotatelog`, or use the first line returned. 

            Assignee:
            adrian.gonzalez@mongodb.com Adrian Gonzalez Montemayor
            Reporter:
            adrian.gonzalez@mongodb.com Adrian Gonzalez Montemayor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: