Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-60179

Modify E_DATASTORE_INSUFFICIENT_CREDENTIALS error to include path string instead of array of path elements

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6.0
    • 7.6.0
    • query
    • Untriaged
    • 0
    • Unknown

    Description

      When a user executes a query without sufficient privileges to perform the query's action - the keyspace that it does not have permissions on is displayed as an array of path elements in the reason.path field. This is not user friendly.

      Display the path as a string instead of an array.

      [
              {
                  "code": 13014,
                  "msg": "User does not have credentials to  on default:bucket1.scope1.people. Add role query_select on default:bucket1.scope1.people to allow the statement to run.",
                  "reason": {
                      "missing_role": "query_select",
                      "path": [
                          "default",
                          "bucket1",
                          "scope1",
                          "people"
                      ]
                  }
              }
          ] 

      Attachments

        For Gerrit Dashboard: MB-60179
        # Subject Branch Project Status CR V

        Activity

          People

            pierre.regazzoni Pierre Regazzoni
            dhanya.gowrish Dhanya Gowrish
            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