That's not very nice is it. ;-) Can you please enter an issue in JIRA for this?
http://issues.appfuse.org/browse/APF The best way to solve this on our end is probably to figure out a mechanism in Base*TestCase to look up the user with a "1" id in the database - or at least allow overriding of this value. Matt On 3/7/07, hiugong.gwok <[EMAIL PROTECTED]> wrote:
If you see that during test, it might be cause by org.appfuse.webapp.controller.BaseControllerTestCase, it has "tomcat" hardcoded. natophonic wrote: > > > 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#a9356528 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
