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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.6
    • 1.5
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: