Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.7.4
Description
When RBAC role prevents a user from doing a certain activity due to role restriction the failure comes back is very generic and confusing - i.e. Data Reader tries to do an upsert:
CouchbaseError: Generic network failure. Enable detailed error codes (via LCB_CNTL_DETAILED_ERRCODES, or via `detailed_errcodes` in the connection string) and/or enable logging to get more information
The 'detailed_errcodes' suggestion doesn't change behaviour. But enable_errmap=true on the URL does produce a slightly less confusing message:
CouchbaseError: The server replied with an unrecognized status code. A newer version of this library may be able to decode it
I know this will be fixed in future enhanced error maps but want to ticket it here as a specific RBAC-related use case that needs to be reviewed in this context.
Feel free to close if a dup.