cancel
Showing results for 
Search instead for 
Did you mean: 

Error adding user to group

alexandra
Champ on-the-rise
Champ on-the-rise
Created a group called "Förbundsstyrelsen" and then tried to click on "Add user" and got this error. Maybe group names must be only characters A-Z and 0-9…?

Any ideas? A bug?

javax.faces.el.EvaluationException: Exception while invoking expression #{GroupsBean.setupGroupAction}
caused by:
org.alfresco.repo.security.authority.UnknownAuthorityException: An authority was not found for GROUP_Förbundsstyrelsen

Hide Details

javax.faces.el.EvaluationException: Exception while invoking expression #{GroupsBean.setupGroupAction}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
at javax.faces.component.UICommand.broadcast(UICommand.java:86)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:105)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.alfresco.web.app.servlet.AdminAuthenticationFilter.doFilter(AdminAuthenticationFilter.java:80)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:613)
Caused by: org.alfresco.repo.security.authority.UnknownAuthorityException: An authority was not found for GROUP_Förbundsstyrelsen
at org.alfresco.repo.security.authority.AuthorityDAOImpl.getContainedAuthorities(AuthorityDAOImpl.java:213)
at org.alfresco.repo.security.authority.AuthorityServiceImpl.getContainedAuthorities(AuthorityServiceImpl.java:212)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:219)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:165)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
at $Proxy19.getContainedAuthorities(Unknown Source)
at org.alfresco.web.bean.GroupsBean.setActionGroup(GroupsBean.java:290)
at org.alfresco.web.bean.GroupsBean.setupGroupAction(GroupsBean.java:625)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
… 26 more


Clicking on just the group to show its members renders a smaller error with this line:

A system error happened during the operation: An authority was not found for GROUP_Förbundsstyrelsen
4 REPLIES 4

frederick
Champ in-the-making
Champ in-the-making
This does look like a bug. I managed to reproduce your error:

- Create a group "Förbundsstyrelsen" while logged in in English worked fine.
- Delete this group while logged in in French gave me the same exception as you mentioned.

In more detail:

When deleting, the group authority node is searched for using type and name, but the name is now "GROUP_F÷rbundsstyrelsen" instead of "GROUP_Förbundsstyrelsen". The search fails, and the exception is thrown.

This is probably the same issue as this one:
http://forums.alfresco.com/viewtopic.php?t=6059

pvk
Champ in-the-making
Champ in-the-making
This does look like a bug. I managed to reproduce your error:

- Create a group "Förbundsstyrelsen" while logged in in English worked fine.
- Delete this group while logged in in French gave me the same exception as you mentioned.

I confirmed that Bug, but you do not need to use non ASCII character. I tried with 'Testeurs' and 'deuxieme' (well, perhaps is it non English words that are not accepted 🙂

When you are login with the English interface, you can manage groups, but not from another language (I tried French and Spanish).

Now that a bug has been identified, how do we report it to Alfresco team ? Is describing them in Forum enough ?

pvk
Champ in-the-making
Champ in-the-making
Oups, I got my answer in the link provided by Frederick :
well known bug, fixed in SVN, and available in a future enterprise patch

alexandra
Champ on-the-rise
Champ on-the-rise
Ok, if I want to have that bug fixed in my system (Community release) I can get it from the SVN?

Since I have not done that before…any directions to point how I do that and what particular file I should be looking for?