[jboss-jira] [JBoss JIRA] (WFLY-5222) Unable to grant custom permission from a WildFly module

Stuart Douglas (JIRA) issues at jboss.org
Fri Aug 28 00:03:05 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-5222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102958#comment-13102958 ] 

Stuart Douglas commented on WFLY-5222:
--------------------------------------

This appears to be user error:
1) You must specify the module to load the permission from in the minimum set
2) Your permission must have a constructor of the form (String, String)
3) When loading from a deployment using permissions.xml the deployment must have a module dependency on the module that contains the permission.

With that said though Wildfly/Jboss modules should not be silently swallowing these exceptions, they should be logged at ERROR level. 

> Unable to grant custom permission from a WildFly module
> -------------------------------------------------------
>
>                 Key: WFLY-5222
>                 URL: https://issues.jboss.org/browse/WFLY-5222
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security Manager
>    Affects Versions: 10.0.0.Beta2
>            Reporter: Josef Cacek
>            Assignee: Stefan Guilhen
>            Priority: Blocker
>
> When a custom permission is defined in a WildFly module (e.g. {{org.jboss.remoting3.security.RemotingPermission}}) then it's not possible to grant it to deployments.
> Neither defining permissions in {{security-manager}} subsystem nor requesting them in {{META-INF/permissions.xml}} works.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list