You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2014/09/18 23:23:33 UTC

[jira] [Resolved] (DELTASPIKE-719) Only one voter invoked if multiple voters are applied through a stereotype

     [ https://issues.apache.org/jira/browse/DELTASPIKE-719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek resolved DELTASPIKE-719.
-----------------------------------------
    Resolution: Fixed

> Only one voter invoked if multiple voters are applied through a stereotype
> --------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-719
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-719
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: JSF-Module
>    Affects Versions: 1.0.2
>            Reporter: Ron Smeral
>            Assignee: Gerhard Petracek
>             Fix For: 1.0.3
>
>         Attachments: ds-secured-jsf-reproducer.zip
>
>
> 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.
> {code:title=Pages.java}
> @Folder(name = "/")
> public interface Pages extends ViewConfig {
>     @LoggedIn
>     interface Stereo extends Pages {
>         @RolesAllowed("admin") // not invoked at all
>         class Secure implements Stereo {
>         }
>     }
> }
> {code}
> This is LoggedIn, and RolesAllowed is analogous...
> {code:title=LoggedIn.java}
> ...
> @Stereotype
> @Secured(LoggedIn.Voter.class)
> public @interface LoggedIn {
>     public static class Voter implements AccessDecisionVoter {
>     ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)