Details
-
Bug
-
Resolution: User Error
-
Major
-
None
-
None
-
None
-
None
Description
This code
Bucket bucket; // = ...
|
JsonDocument docA = JsonDocument.create("docA", JsonObject.create().put("val", 1));
|
bucket.insert(docA);
|
|
bucket.async()
|
.lookupIn("docA")
|
.exists("mx")
|
.execute()
|
.toBlocking()
|
.subscribe(
|
lookupDocumentFragment -> {
|
boolean exists = lookupDocumentFragment.exists("mx");
|
// exists is true, and should be false
|
},
|
e -> e.printStackTrace()
|
);
|
will lead to the DocumentFragment claiming that the nonexistent path does in fact exist.
The problem was reported in the forums here https://forums.couchbase.com/t/java-sdk-bucket-lookupin-exists-bug/16759.
Attachments
Issue Links
- relates to
-
DOC-3640 Clarifying usage of exists() sub-doc mutations API
- Resolved
- links to