Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-20797

[GSS](7.3.z) NullPointerException when invalid <permission> classes specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.3.4.GA
    • Security Manager
    • None
    • False
    • False
    • Undefined
    • Hide
      • - Configure the security manager with an invalid class (bad class name, or simply one that isn't in the classpath) in the mininum-set.  Maximum-set can contain anything except java.security.AllPermission.<subsystem xmlns="urn:jboss:domain:security-manager:1.0">
             <deployment-permissions>
                 <minimum-set>
                    <permission class="invalid.class.name"/>
                </minimum-set>
                <maximum-set>
                </maximum-set>
             </deployment-permissions>
        </subsystem>
      • Start EAP.
      • Observe the startup errors
      Show
      - Configure the security manager with an invalid class (bad class name, or simply one that isn't in the classpath) in the mininum-set.  Maximum-set can contain anything except java.security.AllPermission.<subsystem xmlns="urn:jboss:domain:security-manager:1.0">      <deployment-permissions>          <minimum-set>             <permission class="invalid.class.name"/>         </minimum-set>         <maximum-set>         </maximum-set>      </deployment-permissions> </subsystem> Start EAP. Observe the startup errors

      <permission class="org.jboss.naming.JndiPermission" name="<<ALL BINDINGS>>" actions="createSubcontext"/>

       

      ERROR [management-operation] WFLYCTL0013
      : Operation ("add") failed - address: ([("subsystem" => "security-manager")]): java.lang.NullPointerException
      at java.security.Permissions.getPermissionCollection(Permissions.java:240)
      at java.security.Permissions.implies(Permissions.java:179) at org.jboss.modules.security.FactoryPermissionCollection.implies(Factor
      yPermissionCollection.java:75) at org.wildfly.extension.security.manager.SecurityManagerSubsystemAdd.pe
      rformBoottime(SecurityManagerSubsystemAdd.java:101)

            rhn-support-rmartinc Ricardo Martin Camarero
            rhn-support-dereed Dennis Reed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: