SafeMode always throws an exception when used with server versions 2.1.0 and newer with auth

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.6
    • Affects Version/s: 1.5
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When SafeMode is on the C# driver sends the getLastError command to the admin database. Starting with server version 2.1.0 this fails when using authentication because the connection isn't authenticated to use the admin database (the server didn't used to require authentication for the getLastError command). So the getLastError command must be sent to the same database as the operation it is checking to avoid authentication errors.

              Assignee:
              Robert Stam
              Reporter:
              Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: