Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-521

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6
    • Affects Version/s: 1.5
    • Component/s: None
    • Labels:
      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@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: