Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2847

AuthenticationFailureException is suppressed if invalid credentials are supplied

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.3.0
    • 3.1.3
    • library
    • None
    • 1

    Description

      From the forums: https://forums.couchbase.com/t/the-connection-to-the-cluster-does-not-throw-exceptions-when-the-credentials-are-wrong/29929

      Task<ICluster> cluster = null;
      try
                  {
                      ClusterOptions options = new ClusterOptions()
                      {
                          UserName = pConfig.user,
                          Password = pConfig.password,
                          ConnectionString = pConfig.server
                      };
       
                      cluster = Cluster.ConnectAsync(options);
                      cluster.Wait();
                  }
                  catch (Exception e)
                  {
                      Log.Error(e.Message);
                      return null;
                  } 

      This is confirmed running the code above with invalid credentials or host.

       

      Attachments

        Issue Links

          For Gerrit Dashboard: NCBC-2847
          # Subject Branch Project Status CR V

          Activity

            People

              jmorris Jeff Morris
              jmorris Jeff Morris
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty