[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1333) Methods annotated with @Restrict("#{s:hasPermission cause uncaught Auth Exception

Damian Harvey (JIRA) jira-events at lists.jboss.org
Fri May 18 10:14:52 EDT 2007

Methods annotated with @Restrict("#{s:hasPermission cause uncaught Auth Exception

                 Key: JBSEAM-1333
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1333
             Project: JBoss Seam
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.1.GA
         Environment: JBoss 4.0.5GA
Seam 1.2.1GA
            Reporter: Damian Harvey

If I have a method annotated with a permission eg: @Restrict("#{s:hasPermission('vesselHome','persist',vesselHome.instance)}") and an unauthorised User tries to access this method then the resulting org.jboss.seam.security.AuthorizationException is not intercepted as per the entry in pages.xml and is propagated to the browser.

<exception class="org.jboss.seam.security.AuthorizationException">
		<redirect view-id="/secure/home.xhtml">

public class MyObjectHome extends EntityHome<Vessel> {

	public String persist() {
		String status = super.persist();
		return status;

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list