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

Passing empty string as key returns NULL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.1.0
    • 2.0.7
    • library
    • Security Level: Public
    • None

    Description

      When performing a CRUD operation using the SDK, if you pass the key as an empty string (or an unassigned variable coerced to a string), then NULL is returned by the SDK.

      Is this intended behaviour?
      I believe that we should at least return a CouchbaseMetaDoc with an error code attached.

      Attachments

        Issue Links

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

          Activity

            People

              brett19 Brett Lawson
              matt.carabine Matt Carabine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty