Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-471

When connecting to bucket, "global" credentials of authenticator have to be set to target bucket's credentials

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.1
    • None
    • None

    Description

      On 2.3.0, the following code silently writes both values into the first bucket

      <?php
      $cluster = new \Couchbase\Cluster('couchbase://192.168.1.194');
      $authenticator = new \Couchbase\ClassicAuthenticator();
      $authenticator->bucket('protected1', 's3cret');
      $authenticator->bucket('protected2', 'password');
      $cluster->authenticate($authenticator);
       
      $bucket1 = $cluster->openBucket('protected1');
      var_dump($bucket1->upsert('foo', 'bar'));
       
      $bucket2 = $cluster->openBucket('protected2');
      var_dump($bucket2->upsert('foo', 'baz'));
      

      Attachments

        For Gerrit Dashboard: PCBC-471
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            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