Details
-
Bug
-
Resolution: Fixed
-
Critical
-
5.0.0
-
5.0.0-3136
-
Untriaged
-
Unknown
Description
1. create a bucket default with no documents.
2. create a user test with password as <<password>> with permission as query_insert on bucket default from UI.
3. Try the following query with login as test/password:
cbq> [root@localhost bin]# ./cbq -u test -p password
Connected to : http://localhost:8091/. Type Ctrl-D or \QUIT to exit.
Path to history file for the shell : /root/.cbq_history
cbq> create primary index on default;
{
"requestID": "315fadd3-19b7-4683-af1a-3de485e10233",
"signature": null,
"results": [
],
"status": "success",
"metrics":
}
cbq> drop primary index on default;
{
"requestID": "ac17f772-e62b-4014-982f-0e3ae8c0ca71",
"signature": null,
"results": [
],
"status": "success",
"metrics":
}
User test is allowed to create and drop primary index.