Description
When a user executes a query without sufficient privileges to perform the query's action - the keyspace that it does not have permissions on is displayed as an array of path elements in the reason.path field. This is not user friendly.
Display the path as a string instead of an array.
[
|
{
|
"code": 13014, |
"msg": "User does not have credentials to on default:bucket1.scope1.people. Add role query_select on default:bucket1.scope1.people to allow the statement to run.", |
"reason": { |
"missing_role": "query_select", |
"path": [ |
"default", |
"bucket1", |
"scope1", |
"people" |
]
|
}
|
}
|
]
|
Attachments
For Gerrit Dashboard: MB-60179 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
202770,5 | MB-60179: Report path as path string and not array of path elements... | trinity | query | Status: MERGED | +2 | +1 |