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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.1
    • Component/s: None
    • Labels:
      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

            • Assignee:
              avsej Sergey Avseyev
              Reporter:
              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

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.