Description
Found this bug while verifying MB-25167.
1. Install 4.6.3.-4055
2. create a bucket test with password as pass:123,create primary index on it through UI.
3. connect to cbq as:
cbq> [root@localhost bin]# ./cbq |
No input credentials. In order to connect to a server with authentication, please provide credentials.
|
ERROR 100 : N1QL: Connection failure Requested resource not found. |
|
|
|
Path to history file for the shell : /root/.cbq_history |
cbq> \connect http://localhost:8091; |
|
Couchbase query shell not connected to any endpoint. Use \CONNECT command to connect.
|
ERROR 100 : N1QL: Connection failure Requested resource not found. |
|
|
cbq> \connect http://localhost:8093; |
Connected to : http://localhost:8093. Type Ctrl-D or \QUIT to exit. |
cbq>
|
|
4. set creds for the bucket:
\set -creds test:'pass:123';
5. Try to query this bucket.
cbq> select * from test;
{
"requestID": "ed40c8df-658c-430c-9fcd-27b06d45db7c",
"signature":
,
"results": [
],
"errors": [
],
"status": "stopped",
"metrics":
}
6. If I have another bucket bucket0 with password as password then the above steps work for it.
cbq> \set -creds bucket0:password;
cbq> select * from bucket0;
{
"requestID": "9c05e259-d587-4887-a05a-c675632af876",
"signature":
,
"results": [
],
"status": "success",
"metrics":
}
Attachments
Issue Links
For Gerrit Dashboard: MB-25257 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
81383,4 | MB-25257/MB-25103: Add a test case for the above bugs. | watson | testrunner | Status: MERGED | +2 | +1 |
81543,2 | Revert "MB-25257/MB-25103: Add a test case for the above bugs." | watson | testrunner | Status: MERGED | +2 | +1 |
81547,2 | Revert "Revert "MB-25257/MB-25103: Add a test case for the above bugs."" | watson | testrunner | Status: MERGED | +2 | +1 |