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

Authentication Error number does not match the error code in error message

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.4
    • Affects Version/s: 2.5.3
    • Component/s: Logging, Security
    • Labels:

      We found that some of the Error numbers do not match the error codes in the error message body, for example:

      Error: 18

      { ok: 0.0, errmsg: "X.509 authentication must always use the $external database.", code: 17 }

      Error: 18

      { ok: 0.0, errmsg: "User not found", code: 11 }

      Should they be the same or it is expected behavior?

      You can observe the above output by running the test case found here:

      https://github.com/10gen/QA/blob/master/QA-335/auth_error_code_X509.js

      You can uncomment line 25 to see a detailed error message.

            Assignee:
            andreas.nilsson Andreas Nilsson
            Reporter:
            bin.lan Bin Lan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: