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
    • Resolution: Fixed
    • Major
    • 2.3.1
    • 2.3.0
    • 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

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

        Activity

          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