Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-787

RBAC related errors response confusing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.7.6
    • 2.7.4
    • library

    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.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            tyler.mitchell Tyler Mitchell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty