Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-59

Bucket#cas doesn't set original flags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.1.3, 1.2.0.dp6
    • 1.1.2, 1.2.0.dp5
    • None
    • Security Level: Public
    • None

    Description

      The Bucket#cas operation resets flags

      > Couchbase.bucket.set("foo", "bar", :flags => 0x100)
      17982951084586893312
      > Couchbase.bucket.cas("foo")

      { "baz" }

      1712422461213442048
      > Couchbase.bucket.get("foo", :extended => true)
      ["baz", 0, 1712422461213442048]

      So it could be dangerous if someone using custom flags or non-default value encoding (not :document)

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty