Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-5870

Spec compliant response to authentication errors

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Authentication
    • None
    • C Drivers

      The Authentication and SDAM specifications require authentication failure errors to provoke a standardized response: the connection pool is cleared, server status changed to unknown, and corresponding events emitted. The C driver does not yet have these standard features. Additionally, authentication failures do not even reliably cause command failures. If authentication fails as part of a speculative auth reply, the failure will be fully ignored and transparently retried.

      Necessitates unified test skips:
       
         {"auth-error", "Reset server and pool after AuthenticationFailure error"},
         {"auth-network-error", "Reset server and pool after network error during authentication"},
         {"auth-misc-command-error", "Reset server and pool after misc command error"},
         {"auth-shutdown-error", "Reset server and pool after shutdown error during authentication"},

      In addition to the explicit skips, many tests attempt to cover this feature unsuccessfully by checking for poolClearedEvent, unsupported due to CMAP being out-of-scope. These tests are rendered ineffective until the necessary event handlers are implemented.

            Assignee:
            Unassigned Unassigned
            Reporter:
            micah.scott@mongodb.com Micah Scott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: