You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Ron Smeral (JIRA)" <ji...@apache.org> on 2014/09/12 19:52:35 UTC
[jira] [Created] (DELTASPIKE-718) Voter invoked multiple times for
nested views
Ron Smeral created DELTASPIKE-718:
-------------------------------------
Summary: Voter invoked multiple times for nested views
Key: DELTASPIKE-718
URL: https://issues.apache.org/jira/browse/DELTASPIKE-718
Project: DeltaSpike
Issue Type: Bug
Components: JSF-Module
Affects Versions: 1.0.2
Reporter: Ron Smeral
An AccessDecisionVoter of a {{@Secured}} annotation on a ViewConfig is invoked as many times, as is the ViewConfig's depth in the class hierarchy, when the {{@Secured}} is applied on an element higher in the hierarchy.
As far as I can tell, this is not clear from the documentation. It does not seem like a reasonable behaviour. The expected behaviour would be to invoke the voter only for "leaves" - the actual pages, not for folders.
Example:
{code}
@Folder(name = "/")
public interface Pages extends ViewConfig {
@Secured(LoggedIn.Voter.class)// invoked two times when accessing Page
interface Main extends Pages {
class Page implements Main {
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)