With 
appfuse-spring-2.0-m4-20070303.161353-20.warpath.jar
and
appfuse-web-common-2.0-m4-20070303.161353-60.warpath.jar

and Spring MVC Basic archtype with the standard sample data, when trying to
change the 'tomcat' username to say 'tomcat2', I get the following
exception:

Yikes!

org.acegisecurity.AccessDeniedException: Access Denied: Only administrators
are allowed to modify other users.
        at
org.appfuse.service.UserSecurityAdvice.before(UserSecurityAdvice.java:69)
        at
org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
        at $Proxy37.saveUser(Unknown Source)
        at
org.appfuse.webapp.controller.UserFormController.onSubmit(UserFormController.java:110)
[...]



Changing 'mraible' to 'mraible2' works as expected.

I saw a similar-looking
http://issues.appfuse.org/browse/APF-358
but that seems to pertain to 1.9, not 2.0.

Hopefully it's the same fix, easily ported. :)

-nate


-- 
View this message in context: 
http://www.nabble.com/exception-is-thrown-when-trying-to-change-the-username-in-2.0-snapshot-m4-tf3353260s2369.html#a9325331
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to