Details
Description
Steps to reproduce:
- Disable enhanced durability
- Create document with a small integer value
- Use MutateInBuilder to build a subdocument operation with just one Counter operation against the value
- Execute the operation
- Call Content on the operation giving the same subdoc path
- Receive a null reference exception
Or, for lookups:
- Enhanced durability is not a factor, fails in both cases
- Create document with a small integer value
- Use LookupInBuilder to build a get operation against the value
- Execute the operation
- Call Content on the operation giving the same subdoc path
- Receive a null reference exception
System.NullReferenceException: Object reference not set to an instance of an object.
at Couchbase.DocumentFragment`1.Content[TContent](String path)
This problem doesn't occur if you have more than one operation in the mutation. The "Bytes" value on fragement value within the DocumentResult<T> is null.
Attachments
Issue Links
- blocks
-
NCBC-1349 Single Subdoc Mutation Operations Don't Return Mutation Token
- Resolved
For Gerrit Dashboard: NCBC-1348 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
74641,4 | NCBC-1348: Fix single sub-doc operations against small values | master | couchbase-net-client | Status: MERGED | +2 | +1 |