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
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.3
    • 3.3.0
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            jmorris Jeff Morris added a comment -

            The AuthenticationFailureException that is thrown in ClusterContext.BootstrapGlobalAsync should be bubbled up and not suppressed and logged.

            jmorris Jeff Morris added a comment - The AuthenticationFailureException that is thrown in ClusterContext.BootstrapGlobalAsync should be bubbled up and not suppressed and logged.

            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