Skip to content

[0.9.4.2] inconsistent responses on show grants query #4511

@Kindrat

Description

@Kindrat

OS: Xubuntu 15.04
InfluxDB : 0.9.4.2
InfluxDB installation: tutum/influxdb:0.9 docker image

Could someone explain me, why responses differs? When user does not have any permissions for db, empty response is returned:
{"results":[{"series":[{"columns":["database","privilege"]}]}]}
After granting and revoking privileges, influx returns:
{"results":[{"series":[{"columns":["database","privilege"],"values":[["DatabaseName","NO PRIVILEGES"]]}]}]}

And the other thing: privilege requests require ALL keyword for all privileges, but responses contain ALL PRIVILEGES. READ and WRITE do not have such mutation in responses. Isn't it better to have some defined convention?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions