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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.3
    • None
    • 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

        For Gerrit Dashboard: PCBC-522
        # 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