Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
-
SDK04: Scope Search, SDK06: FIT, PS, CXX
Description
The test "exceptionsMixedLookup" executes 3 LookupIn operations and expects 3 exceptions back. The SDK instead returns 1 result and 2 of the correct exceptions.
The specific operation succeeding when it should fail is:
List.of(LookupInSpec.newBuilder()
|
.setExists(ExistsOperation.newBuilder()
|
.setPath("nestedObject..content") |
.build())
|
.setContentAs(ContentAs.newBuilder().setAsBoolean(true).build()) |
.build()
|
The returned result is:
results {
|
content_as_result {
|
content {
|
content_as_bool: false |
}
|
}
|
exists_result {
|
value: false |
}
|
}
|
Instead of SDK_PATH_INVALID_EXCEPTION.
An easy fix is checking if the spec's bytes are null, but that breaks another test for the same reason as JCBC-2056.
Attachments
For Gerrit Dashboard: NCBC-3612 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
205313,4 | NCBC-3612: FIT KV: LookupInMixed returns result instead of exception | master | couchbase-net-client | Status: MERGED | +2 | +1 |