Details
-
Bug
-
Resolution: Won't Fix
-
Test Blocker
-
None
-
None
Description
The code sample for this page (https://docs.couchbase.com/dotnet-sdk/2.7/sdk-xattr-example.html) does not compile (using .NET SDK 2.7.16, and .NET Framework 4.7.2).
First, `SubdocMutateFlags` doesn't exist. It should (probably) be `SubdocPathFlags` instead.
Second, the `cluster.CreateManager().UpsertUser` part is missing a parameter value for authentication domain. It should look more like `cluster.CreateManager().UpsertUser(AuthenticationDomain.Local, "jsmith123", ... etc ...);`
Finally, even when making these changes, the code as is throws an ObjectDisposedException: "The collection has been disposed".
Could you please update this code snippet so that it compiles and runs as-is?