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

Use valid key to check error string in speculative-auth-replset

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • ALL
    • Security 2024-09-16
    • 0

      When checking `if (entry.id === kAuthenticationFailedLogId)`, we are incorrectly trying to access `attr.error.code` of the entry object. However, the error field is a string, not an object with a code key.

      Example of a log entry:

      {"attr": \{"error": "AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected"}

      We should check whether the error contains specific substring such as "AuthenticationAbandoned".

            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: