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

Authentication exception when opening memcached bucket with password from ClientConfiguration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.3
    • 2.0.2
    • library
    • None

    Description

      If you try to open a password protected memcached bucket with a configuration containing the password (but only when you call OpenBucket(name) and not OpenBucket(name, password), the client will throw an exception as follows:

      System.AggregateException : Could not bootstrap - check inner exceptions for details.

      ----> Couchbase.Configuration.ConfigException : is this a Memcached bucket?

      If you look at the logs you'll find it's really a WebException with a response of unauthorized:

      2015-02-17 10:17:12,583 [Runner thread] ERROR Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig - Bootstrapping failed from http://192.168.27.102:8091/pools: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
      at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
      at System.Net.WebClient.DownloadString(Uri address)
      at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownLoadConfig[T](Uri uri) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Configuration\Server\Providers\Streaming\HttpServerConfig.cs:line 115
      at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownloadConfigs(Uri server) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Configuration\Server\Providers\Streaming\HttpServerConfig.cs:line 62

      Attachments

        Issue Links

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

          Activity

            People

              simonbasle Simon Baslé (Inactive)
              jmorris Jeff Morris
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty