Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-350

Wrongly set basic-auth when username and password are both empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.4.2
    • 1.4.1
    • library
    • None
    • 1

    Description

      Our couchbase cluster/bucket do not require credentials for managing, thus when creating a bucket manager, the username and password are both set to empty string.
      But in the Golang SDK (https://github.com/couchbase/gocb/blob/4d157c9c3b4ec7db3d73153a79082025c1a53618/bucketmgr.go#L68) there is a statement to set using basic auth even when the username and password are empty.
      This causes the CB server to actively checking for auth, and then returns 401 because the password is empty.
      We would like to request a change to the linked statement to check for username and password before setting the value, so when both are empty, that statement can skip execution.

      Attachments

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

        Activity

          People

            charles.dixon Charles Dixon
            zhongjie.cai Zhongjie Cai
            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