We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I sent the following JSON document to the endpoint /v3alpha/auth/role/grant:
/v3alpha/auth/role/grant
{ "name": "myRoleName", "perm": { "permType": "READ", "key": "some key", "range_end": "some range end" } }
The response was:
HTTP/1.1 400 Bad Request Content-Type: application/json Date: Thu, 14 Jul 2016 14:31:31 GMT Content-Length: 75 {"Error":"unknown value \"READ\" for enum authpb.Permission_Type","Code":3}
It worked when sending this request:
{ "name": "myRoleName", "perm": { "permType": 0, "key": "some key", "range_end": "some range end" } }
0 is the enum value for "READ".
0
"READ"
I would have expected that the value "READ" works, since the protobuf3 documentation says so.
The text was updated successfully, but these errors were encountered:
I think this is compatibility issue between upstream packages. I reported here gogo/protobuf#189.
Thanks for reporting.
Sorry, something went wrong.
scripts: update gogo/protobuf, use 'gofast' plugin
6e53f75
- Fix etcd-io#5942 - Partial fix for etcd-io#5865
4198369
- Fix #5942 - Partial fix for #5865
gyuho
Successfully merging a pull request may close this issue.
I sent the following JSON document to the endpoint
/v3alpha/auth/role/grant
:The response was:
It worked when sending this request:
0
is the enum value for"READ"
.I would have expected that the value
"READ"
works, since the protobuf3 documentation says so.The text was updated successfully, but these errors were encountered: