Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5581

Do not ignore security annotations and deployment descriptor configurations on EJBs in the absence of explicit security domain configuration

    XMLWordPrintable

Details

    Description

      Consider the following example:

      @Stateless
      public class SecureBean 
      {
      
         @RolesAllowed("role1")
         public void restrictedRoles()
         {
          ...
         }
      
         @DenyAll
         public void denyEveryone()
         {
           ...
         }
      
      }
      

      Notice that the bean methods use EJB security annotations to restrict access however the bean doesn't have any explicit @SecurityDomain configured (not even in jboss-ejb3.xml). Right now, AS7 ignores the security restriction on that bean allows everyone to invoke on it, as if security wasn't configured for that bean. This has confused users who expect the invocations to fail since they have used the javax.ejb.* security annotations to restrict access. Many users have asked for a feature where the security domain is defaulted (if not explicitly specified) in cases like this.

      This JIRA is expected to introduce this feature in AS 7.2.x

      Attachments

        Issue Links

          Activity

            People

              jaikiran Jaikiran Pai (Inactive)
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: