Description
Query accepts only form encoded creds parameter, it fails when using json encoding.
curl -H "Content-Type: application/json" -X POST http://127.0.0.1:8093/query/service -d '{ "statement" : "create primary index on default","creds": [
{"user":"default", "pass": ""}] }'
{
"requestID": "0fd85fa1-242b-4a5e-b460-4557c241c8d9",
"errors": [
{
"code": 1070,
"msg": "creds has to be of type array of
"
}
],
"status": "fatal",
"metrics":
}
Attachments
For Gerrit Dashboard: MB-19218 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
62886,1 | MB-19218: Disable use of "creds" parameter for N1QL | master | libcouchbase | Status: ABANDONED | +2 | +1 |