Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-719

Only one voter invoked if multiple voters are applied through a stereotype

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.2
    • 1.0.3
    • JSF-Module
    • None

    Description

      When securing a view using multiple @Secured annotations applied through multiple stereotypes, only one of them is applied. In the following example, only the LoggedIn.Voter is invoked, RolesAllowed.Voter is skipped.

      Pages.java
      @Folder(name = "/")
      public interface Pages extends ViewConfig {
      
          @LoggedIn
          interface Stereo extends Pages {
      
              @RolesAllowed("admin") // not invoked at all
              class Secure implements Stereo {
              }
          }
      }
      

      This is LoggedIn, and RolesAllowed is analogous...

      LoggedIn.java
      ...
      @Stereotype
      @Secured(LoggedIn.Voter.class)
      public @interface LoggedIn {
      
          public static class Voter implements AccessDecisionVoter {
          ...
      

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            rsmeral Ron Smeral
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: