Hi Devs,

I found some of our rest APIs doesn't have the correct Authorization
Action. For example addDeploymentPolicy API.

    @POST
    @Path("/deploymentPolicies")
    @Produces("application/json")
    @Consumes("application/json")
    @AuthorizationAction("/permission/admin/manage/addCartridge")
    public Response addDeploymentPolicy(DeploymentPolicyBean
deploymentPolicyDefinitionBean)
            throws RestAPIException {

Authorization Action should be
"/permission/admin/manage/addDeploymentPolicy". We also need to add this to
the component.xml of the relevant component (AS/CC/SM) which exposes this
API.

Thanks.

-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Reply via email to