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

Segmentation fault with ClassicAuthenticator without username/password overrides

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.3
    • Component/s: None
    • Labels:
      None

      Description

      The library should only try to use username and password overrides when they are not NULL.

      The following code sample generates segfault on NULL dereference

      <?php
       
      $authenticator = new \Couchbase\ClassicAuthenticator();
      $authenticator->cluster('Administrator', 'password');
       
      $cluster = new \Couchbase\Cluster("http://127.0.0.1:8091");
      $cluster->authenticate($authenticator);
      $cluster->manager()->createBucket('my_bucket');
      

        Attachments

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

          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.