Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7897

[Done- RN 2.0.2] Modify a bucket resets unspecified values to the default value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Critical
    • 3.0
    • 1.8.0, 1.8.1, 2.0, 2.0.1, 2.1.0
    • RESTful-APIs
    • Security Level: Public
    • None

    Description

      All values omitted in a modify request for a bucket is reset to their default value. Most users won't find it natural to first go get the bucket properties before toggling their value before setting it (if they want to lets say just enable flush for a bucket).

      Eg:

      As a user I would expect to be able to do something like this (by using the php api):

      $cb = new CouchbaseClusterManager("192.168.0.97", "Administrator", "asdasd");
      $cb->modifyBucket("default", array("enable flush" => 1));

      Instead we force the user to grab the properties first, and then send the entire set back with their modification.

      In theory we could do this "under the cover" in the API's, but that will add complexity in the clients (if they're running in an async environment etc). Sending the full config back and forth is just unneeded overhead.

      Attachments

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

        Activity

          People

            alkondratenko Aleksey Kondratenko (Inactive)
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty