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

[N1QL][RBAC] Inconsistent error message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • 6.5.0
    • 5.0.0
    • query, rbac
    • 5.0.0-3456

    Description

      When I issue this command on my machine: 

      /opt/couchbase/bin/cbq -e 172.23.106.24:8093 -u 'curl_no_insert' -p 'password' -q  -s="select curl('http://172.23.106.24:8093/query/service', {'data':'statement=insert into default (key UUID(), value result) select result from curl(\"https://jira.atlassian.com/rest/api/latest/issue/JRA-9\") result returning meta().id, * '})"

       

      There are two error messages that can be returned:

       

      "User does not have credentials to run queries using the CURL() function. Add role query_external_access to allow the query to run."

       

      OR

      "User does not have credentials to run INSERT queries on the default bucket. Add role query_insert on default to allow the query to run."

       

      The first error message is returned more frequently, but the second one does appear from time to time. It is also worth noting the user that I passed in doesn't even exist.

      Attachments

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

        Activity

          People

            ajay.bhullar Ajay Bhullar
            ajay.bhullar Ajay Bhullar
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty