You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/02/08 20:09:13 UTC

[jira] [Commented] (CLOUDSTACK-1190) Make APIChecker interface throw a single sensible exception

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574739#comment-13574739 ] 

ASF subversion and git services commented on CLOUDSTACK-1190:
-------------------------------------------------------------

Commit ee90b4cad3f6a0c197201ce434436a3c0cb6b9fc in branch refs/heads/4.1 from [~minchen07]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=ee90b4c ]

CLOUDSTACK-1190: make APIChecker throw one sensible exception.
                
> Make APIChecker interface throw a single sensible exception
> -----------------------------------------------------------
>
>                 Key: CLOUDSTACK-1190
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1190
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Rohit Yadav
>            Assignee: Min Chen
>             Fix For: 4.1.0
>
>
> At present based on a plugin's requirements there are two exceptions that are said to be thrown by a plugin implementing the APIChecker interface. Make it throw only one standard exception, it can be a new exception as well. We should not allow every plugin to introduce their own exceptions;
> public interface APIChecker extends Adapter {
> ...
>     boolean checkAccess(User user, String apiCommandName) throws PermissionDeniedException, RequestLimitException;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira