Details
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)
> 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)
Activity
- All
- Comments
- Work Log
- History
- Activity
- Gerrit Reviews
Sergey Avseyev
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.1.3 [ 10361 ] | |
| Fix Version/s | 1.2.0.dp6 [ 10351 ] | |
| Affects Version/s | 1.2.0.dp5 [ 10350 ] | |
| Affects Version/s | 1.1.2 [ 10360 ] | |
| Affects Version/s | 1.1.1 [ 10293 ] |
Sergey Avseyev
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Sergey Avseyev
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |