Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3837

Add tests for @RolesAllowed use if bean class has superclasses

    XMLWordPrintable

    Details

      Description

      The scenario in https://issues.jboss.org/browse/WFLY-2988 (https://bugzilla.redhat.com/show_bug.cgi?id=1072638) is rejected by engineer as it's considered current behaviour is correct.
      Adding tests to cover @RolesAllowed use if the bean class has superclasses.

      Example in EJB 3.1 spec 17.3.2.1:

      Example:
      @RolesAllowed(“admin”)
      public class SomeClass {
      public void aMethod () {...}
      public void bMethod () {...}
      ...
      }
      @Stateless public class MyBean extends SomeClass implements A {
      @RolesAllowed(“HR”)
      public void aMethod () {...}
      }
      public void cMethod () {...}
      ...
      
      Assuming aMethod, bMethod, cMethod are methods of business interface A, the method permis-
      sions values of methods aMethod and bMethod are RolesAllowed(“HR”) and RolesAl-
      lowed(“admin”) respectively
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              soul2zimate Chao Wang
              Reporter:
              soul2zimate Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: