Issue Details (XML | Word | Printable)

Key: APF-1062
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Scott Hong
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

AppFuse Spring Security/AspectJ issues

Created: 05/May/08 09:32 PM   Updated: 06/May/08 09:28 AM   Resolved: 06/May/08 09:28 AM
Component/s: None
Affects Version/s: 2.0.2
Fix Version/s: 2.0.2

Environment: AppFuse 2, Struts2 Basic


 Description  « Hide
As detailed in the following link:
http://www.nabble.com/AppFuse-Spring-Security-AspectJ-issues-td17047478s2369.html

The same issue is confirmed using JSP. The signup page for appfuse takes about 5 seconds to load and it happened after reloading the page everytime. When the security.xml's pointcut expression is changed to the following, the first page take about the same time for the obvious reason (JSP compiling). However, the second page reload take only about 1 second (relative terms).

    <global-method-security>
        <protect-pointcut expression="execution(* *..service.UserManager.getUsers(..))" access="ROLE_ADMIN"/>
        <protect-pointcut expression="execution(* *..service.UserManager.removeUser(..))" access="ROLE_ADMIN"/>
    </global-method-security>


Scott Hong added a comment - 06/May/08 08:25 AM
As a suggestion. Use the updated schema reference to 2.0.1 (spring-security-2.0.1.xsd) in security.xml

3137 by  Matt Raible (1 file)
06/May/08 09:23 AM (27 months, 12 days ago)
APF-1062: Changed pointcut expression to be more performant. Changed XSD to 2.0.1 since there's differences between 2.0 and 2.0.1.
appfuse: trunk/web/common/src/main/webapp/WEB-INF/security.xml 3137 history download (+3 -3) diffs

Matt Raible made changes - 06/May/08 09:28 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.0.2 [ 10110 ]
Resolution Fixed [ 1 ]