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

Josef Cacek (JIRA) issues at jboss.org
Fri Aug 28 07:31:06 EDT 2015


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

Josef Cacek commented on WFLY-5222:
-----------------------------------

I've fixed the point 1 in the reproducer. Thanks for pointing it out.

The point 2 is not a valid requirement AFAIK.
You could even have a Permission with a constructor without parameters. Look at [getInstance() method of Java default Policy implementation|http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/tip/src/share/classes/sun/security/provider/PolicyFile.java#l955] - it works for 0-2 params in constructor.

The module dependency in point 3 is already part of the reproducer. I'll add one more war with {{permissions.xml}} included.

> 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