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

Incorrect error message with unauthenticated "create index" request in CE version.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.5.0
    • 5.0.0, 5.5.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      Couchbase CE has many fewer roles than EE. If you try to create an index as an unauthenticated user, e.g.,

      curl http://localhost:9093/query/service -d 'statement=create primary index on default;'

      The error message that comes back is:

      [\{"code":13014,"msg":"User does not have credentials to run index operations. Add role query_manage_index on default to allow the query to run."}]

      Yet the CE version doesn't have a query_manage_index role. The query does work you supply user credentials with the Administrator role, or with the "Bucket Full Access" role.

       

      Attachments

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

        Activity

          People

            johan.larson Johan Larson (Inactive)
            eben Eben Haber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty