You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/10/11 09:56:48 UTC

[GitHub] rhtyd commented on a change in pull request #2894: api: don't throttle api discovery for listApis command

rhtyd commented on a change in pull request #2894: api: don't throttle api discovery for listApis command
URL: https://github.com/apache/cloudstack/pull/2894#discussion_r224387400
 
 

 ##########
 File path: plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
 ##########
 @@ -236,7 +238,9 @@ private ApiDiscoveryResponse getCmdRequestMap(Class<?> cmdClass, APICommand apiC
                 boolean isAllowed = true;
                 for (APIChecker apiChecker : _apiAccessCheckers) {
                     try {
-                        apiChecker.checkAccess(user, apiName);
+                        if (!"ApiRateLimitServiceImpl".equals(apiChecker.getName())) {
 
 Review comment:
   you can use something like this.class.getName() or the <class>.getName()... instead of the hard coded string comparison.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services