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


    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 1.8.0, 1.8.1, 2.0, 2.0.1, 2.1.0
    • Fix Version/s: 3.0
    • Component/s: RESTful-APIs
    • Security Level: Public
    • Labels:


      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).


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

      $cb = new CouchbaseClusterManager("", "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.

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



          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            trond Trond Norbye
          • Votes:
            0 Vote for this issue
            5 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes