]
Shane Bryzak reassigned JBSEAM-3352:
------------------------------------
Assignee: Shane Bryzak
New Permission annotations works only on method level
------------------------------------------------------
Key: JBSEAM-3352
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3352
Project: Seam
Issue Type: Bug
Components: Security
Affects Versions: 2.1.0.BETA1
Reporter: Vinicius Carvalho
Assignee: Shane Bryzak
Priority: Minor
The new permission annotations (@PermissionUser,@PermissionRole) are working only when
methods gets annotated with them. The problem is on the AnnotatedBeanProperty class which
checks for
public static AnnotatedBeanProperty scanForProperty(Class cls, Class<? extends
Annotation> annotation)
{
for (Field f : cls.getFields())
{
if (f.isAnnotationPresent(annotation))
{
return new AnnotatedBeanProperty(f, f.getAnnotation(annotation));
}
}
It should be cls.getDeclaredFields() since f.getFields only returns public fields.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: