Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.7.25, 2.7.26
-
None
-
None
-
Couchbase .Net SDK 2.7.x
Couchbase Server 7.0.2
-
1
Description
Checking for exist always returns false on the .net SDK.
it does work on equivalent Java SDK.
recreation code
var servers = new List<Uri> |
{
|
new Uri("http://localhost") |
};
|
var useSsl = false; |
var cluster = new Cluster(new ClientConfiguration |
{
|
Servers = servers,
|
UseSsl = useSsl
|
});
|
cluster.Authenticate(
|
new PasswordAuthenticator("Administrator", "password")); |
var bucket = await cluster.OpenBucketAsync("beer-sample"); |
|
Console.WriteLine(bucket.Get<string>("21st_amendment_brewery_cafe")); |
Console.WriteLine(bucket.Exists("21st_amendment_brewery_cafe")); |
Output:
{"id":"21st_amendment_brewery_cafe","cas":1634226326775201792,"token":"mt{bRef=, vbID= -1, vbUUID=-1, seqno=-1}","content":"\"{\\\"name\\\":\\\"21st Amendment Brewery Cafe\\\",\\\"city\\\":\\\"San Francisco\\\",\\\"state\\\":\\\"California\\\",\\\"code\\\":\\\"94107\\\",\\\"country\\\":\\\"United States\\\",\\\"phone\\\":\\\"1-415-369-0900\\\",\\\"website\\\":\\\"http://www.21st-amendment.com/\\\",\\\"type\\\":\\\"brewery\\\",\\\"updated\\\":\\\"2010-10-24 13:54:07\\\",\\\"description\\\":\\\"The 21st Amendment Brewery offers a variety of award winning house made brews and American grilled cuisine in a comfortable loft like setting. Join us before and after Giants baseball games in our outdoor beer garden. A great location for functions and parties in our semi-private Brewers Loft. See you soon at the 21A!\\\",\\\"address\\\":[\\\"563 Second Street\\\"],\\\"geo\\\":{\\\"accuracy\\\":\\\"ROOFTOP\\\",\\\"lat\\\":37.7825,\\\"lon\\\":-122.393}}\""} |
False
|
Expected Output:
{"id":"21st_amendment_brewery_cafe","cas":1634226326775201792,"token":"mt{bRef=, vbID= -1, vbUUID=-1, seqno=-1}","content":"\"{\\\"name\\\":\\\"21st Amendment Brewery Cafe\\\",\\\"city\\\":\\\"San Francisco\\\",\\\"state\\\":\\\"California\\\",\\\"code\\\":\\\"94107\\\",\\\"country\\\":\\\"United States\\\",\\\"phone\\\":\\\"1-415-369-0900\\\",\\\"website\\\":\\\"http://www.21st-amendment.com/\\\",\\\"type\\\":\\\"brewery\\\",\\\"updated\\\":\\\"2010-10-24 13:54:07\\\",\\\"description\\\":\\\"The 21st Amendment Brewery offers a variety of award winning house made brews and American grilled cuisine in a comfortable loft like setting. Join us before and after Giants baseball games in our outdoor beer garden. A great location for functions and parties in our semi-private Brewers Loft. See you soon at the 21A!\\\",\\\"address\\\":[\\\"563 Second Street\\\"],\\\"geo\\\":{\\\"accuracy\\\":\\\"ROOFTOP\\\",\\\"lat\\\":37.7825,\\\"lon\\\":-122.393}}\""} |
True
|
Attachments
For Gerrit Dashboard: NCBC-2997 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
165437,4 | NCBC-2997: Exists return incorrect result when framing xtras present | release27 | couchbase-net-client | Status: MERGED | +2 | +1 |