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

Add tests for @RolesAllowed use if bean class has superclasses

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 9.0.0.Alpha1
    • 8.1.0.Final
    • EJB, Test Suite
    • None

      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
      

              chaowan@redhat.com Chao Wang
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: