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

[N1QL RBAC]Incorrect message displayed when indexer storage mode is not set

    XMLWordPrintable

Details

    • Untriaged
    • No

    Description

      1. Install spock version 5.0.0-2241 using testrunner install script.

      python ./scripts/install.py -i query1.ini -p version=5.0.0-2241,product=cb,parallel=true,vbuckets=1024,init_nodes=true
      

      2. create a bucket test with password.
      3. Do not set indexer storage mode.
      4. Try creating a user with query_index_manager authority with incorrect bucketname and password:
      curl -X PUT http://localhost:8091/settings/rbac/users/builtin/idxmanage -d "name=Idx Manage&roles=query_manage_index[bucket1]&password=password" -u Administrator:password
      "Malformed or unknown roles: [query_manage_index[bucket1]]
      5.Set the indexer storage mode.
      6. After giving correct bucketname and wrong password,no error is reported:
      curl -X PUT http://172.23.107.158:8091/settings/rbac/users/builtin/idxmanage -d "name=Idx Manage&roles=query_manage_index[test]&password=password" -u Administrator:password

      Is this a correct error message in all the above scenarios?

      Attachments

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

        Activity

          People

            Prerna.Manaktala Prerna Manaktala (Inactive)
            Prerna.Manaktala Prerna Manaktala (Inactive)
            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