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

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

    XMLWordPrintable

Details

    • Question
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.5.3
    • 2.5.4
    • Logging, Security

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: