Issue 2043: New option or command for capability
Status:  ChangeUnderReview
Owner: ----
Reported by rinrin...@gmail.com, Aug 1, 2013
If a user has no capability, gerrit stream-events fails with fatal error.
If a user has proper capability, it would success but client cannot know it until the first event is received. Until that, client cannot determine that stream connection is established.

So I want new option for gerrit-events or new command to check capability for specified command.

Aug 13, 2013
Project Member #1 david.pu...@sonymobile.com
This can be done with the REST API:

 GET /accounts/self/capabilities HTTP/1.0

Aug 13, 2013
#4 rinrin...@gmail.com
The reason why ssh connection is needed is that the feature to receive events is not provided via API.

If API authentication is needed, such feature should be provided via API. e.g. websocket.
If not be provided, my concern like above should be solved in ssh connection only.

Note that client needs to have additional information for API authentication (perhaps http password). It means that security risk is increased.
Nov 15, 2013
#5 rinrin...@gmail.com
I checked accounts endpoint but there is no capability information for stream events.

https://gerrit-documentation.storage.googleapis.com/Documentation/2.7/rest-api-accounts.html#capability-info
Nov 15, 2013
Project Member #6 edwin.ke...@gmail.com
The documentation of this REST endpoint misses to mention this capability. this is fixed by:
  https://gerrit-review.googlesource.com/51762

But it is documented here:
  https://gerrit-documentation.storage.googleapis.com/Documentation/2.7/access-control.html#capability_streamEvents



Status: ChangeUnderReview