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

Compile error when calling mycluster.Authenticate(gocb.CertificateAuthenticator{}) in gocbcv14 repo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.3.7
    • None
    • None
    • None
    • 1

    Description

      For testing traceability and compression feature, I'm using gocbv14 repo.
      With the same code, when I try to test client certificate, I call

      mycluster.Authenticate(gocb.CertificateAuthenticator{})

      and this spews compile error complaining gocb.CertificateAuthenticator{} is not Authenticator interface type.
      Looking at the code I found https://github.com/couchbaselabs/gocbv14/blob/master/auth.go#L59 defines interface returns ([]UserPassPair, error) while https://github.com/couchbaselabs/gocbv14/blob/master/auth.go#L134 returns ([]gocbcore.UserPassPair, error) which means CertificateAuthenticator struct does not implement Credentials function for Athenticator interface

      Attachments

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

        Activity

          People

            charles.dixon Charles Dixon
            jaekwon.park Jae Park [X] (Inactive)
            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