Ron Smeral created DELTASPIKE-719:
-------------------------------------
Summary: 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
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)