AnsweredAssumed Answered

Problème d'accès lors du login

Question asked by jc09 on Jul 23, 2010
Bonjour,

Suite à quelques customisations n'impactant pourtant pas la partie concernant le "breadcrumb" (mais plutôt la partie titlebar.jsp), je me retrouve avec l'erreur suivante lors de la tentative de connexion à mon Alfresco avec un utilisateur remonté d'un annuaire LDAP :

Erreur système     
javax.faces.FacesException: An exception occurred processing JSP page /jsp/browse/../parts/breadcrumb.jsp at line 38

35: <td style="background-color: #dfe6ed;">
36: <%– Breadcrumb component –%>
37: <div style="padding-left:8px" class="headbarTitle">
38: <a:breadcrumb value="#{NavigationBean.location}" styleClass="headbarLink" />
39: </div>
40: </td>
41: <td style="background-image: url(<%=request.getContextPath()%>/images/parts/headbar_6.gif)"></td>


Stacktrace:
caused by:
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/browse/../parts/breadcrumb.jsp at line 38

35: <td style="background-color: #dfe6ed;">
36: <%– Breadcrumb component –%>
37: <div style="padding-left:8px" class="headbarTitle">
38: <a:breadcrumb value="#{NavigationBean.location}" styleClass="headbarLink" />
39: </div>
40: </td>
41: <td style="background-image: url(<%=request.getContextPath()%>/images/parts/headbar_6.gif)"></td>


Stacktrace:
caused by:
javax.faces.el.EvaluationException: Cannot get value for expression '#{NavigationBean.location}'
caused by:
javax.faces.el.EvaluationException: Exception getting value of property location of base of type : org.alfresco.web.bean.NavigationBean
caused by:
javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.NavigationBean, property: location
caused by:
java.lang.reflect.InvocationTargetException
caused by:
org.alfresco.repo.security.permissions.AccessDeniedException: Access refusé. Vous n'avez pas la permission de réaliser cette opération.
caused by:
net.sf.acegisecurity.AccessDeniedException: Access is denied.

Show Details
javax.faces.FacesException: An exception occurred processing JSP page /jsp/browse/../parts/breadcrumb.jsp at line 38

35: <td style="background-color: #dfe6ed;">
36: <%– Breadcrumb component –%>
37: <div style="padding-left:8px" class="headbarTitle">
38: <a:breadcrumb value="#{NavigationBean.location}" styleClass="headbarLink" />
39: </div>
40: </td>
41: <td style="background-image: url(<%=request.getContextPath()%>/images/parts/headbar_6.gif)"></td>


Stacktrace:
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/browse/../parts/breadcrumb.jsp at line 38

35: <td style="background-color: #dfe6ed;">
36: <%– Breadcrumb component –%>
37: <div style="padding-left:8px" class="headbarTitle">
38: <a:breadcrumb value="#{NavigationBean.location}" styleClass="headbarLink" />
39: </div>
40: </td>
41: <td style="background-image: url(<%=request.getContextPath()%>/images/parts/headbar_6.gif)"></td>


Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
… 19 more
Caused by: javax.faces.el.EvaluationException: Cannot get value for expression '#{NavigationBean.location}'
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:405)
at javax.faces.component.UICommand.getValue(UICommand.java:173)
at org.alfresco.web.ui.common.component.UIBreadcrumb.getValue(UIBreadcrumb.java:141)
at org.alfresco.web.ui.common.renderer.BreadcrumbRenderer.encodeBegin(BreadcrumbRenderer.java:78)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:515)
at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:467)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:320)
at org.apache.jsp.jsp.browse.browse_jsp._jspx_meth_a_005fbreadcrumb_005f0(browse_jsp.java:1477)
at org.apache.jsp.jsp.browse.browse_jsp._jspService(browse_jsp.java:595)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
… 29 more
Caused by: javax.faces.el.EvaluationException: Exception getting value of property location of base of type : org.alfresco.web.bean.NavigationBean
at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:535)
at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:386)
… 40 more
Caused by: javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.NavigationBean, property: location
at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:461)
at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
… 43 more
Caused by: java.lang.reflect.InvocationTargetException
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:597)
at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:457)
… 44 more
Caused by: org.alfresco.repo.security.permissions.AccessDeniedException: Access refusé. Vous n'avez pas la permission de réaliser cette opération.
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.getProperty(Unknown Source)
at org.alfresco.web.bean.repository.Repository.getNameForNode(Repository.java:217)
at org.alfresco.web.bean.NavigationBean.processToolbarLocation(NavigationBean.java:385)
at org.alfresco.web.bean.NavigationBean.getLocation(NavigationBean.java:746)
… 49 more
Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
… 60 more
Retourner à l'application
Déconnexion

Après quelques recherches j'ai trouvé :

- un ticket JIRA concernant cette erreur mais aucune réelle correction n'est décrite : http://issues.alfresco.com/jira/browse/ETWOTWO-548
- un topic sur les forums anglais qui en parle mais pour laquelle il n'y a pas plus de réelle solution : http://forums.alfresco.com/en/viewtopic.php?f=3&t=20107

Toute aide ou information sera bien évidemment la bienvenue.

Merci d'avance

Outcomes