This happens when a user has permission to a project, however does not have permission to the default repository in that project.
After talking to tim@atlassian.com, this could be fixed by checking the isAuthorized() flag on the source object returned by sourceFactory.getSource in this method in UserTextRendererTag:
protected Linker getLinker() { Source source = null; if (!StringUtils.isEmpty(repname)) { SourceFactory sourceFactory = SpringContext.getComponent(SourceFactory.class, "sourceFactory"); EffectiveUserProvider effectiveUserProvider = SpringContext.getComponent(EffectiveUserProvider.class, "effectiveUserProvider"); source = sourceFactory.getSource(repname, effectiveUserProvider.getEffectivePrincipal()); } return getLinkerService().getLinker(source, project); }
ie. getLinkerService().getLinker() should never be called with a source instance that the current user is not authorised to view.
Also investigate why UserTextRendererTag sets the repname when rendering a project.
Note; the check may be better placed in the linker service's getLinker() method.
Actual stack trace is:
[java] 2012-05-07 15:44:02,696 WARN - Nested in javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: No local entity with key 'FE-HG' and type 'class com.atlassian.applinks.application.fecru.FishEyeRepositoryEntityTypeImpl' exists: [java] javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: No local entity with key 'FE-HG' and type 'class com.atlassian.applinks.application.fecru.FishEyeRepositoryEntityTypeImpl' exists [java] at org.apache.jsp.tag.web.review.reviewResultListView_tag.doTag(org.apache.jsp.tag.web.review.reviewResultListView_tag:230) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag._jspx_meth_rev_reviewResultListView_0(org.apache.jsp.tag.web.cru.reviewTable_tag:644) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag._jspx_meth_c_forEach_0(org.apache.jsp.tag.web.cru.reviewTable_tag:608) [java] at org.apache.jsp.tag.web.cru.reviewTable_tag.doTag(org.apache.jsp.tag.web.cru.reviewTable_tag:210) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_rend_reviewTable_0(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:751) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_c_otherwise_1(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:718) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_c_choose_1(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:658) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp.access$11(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:641) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp$dashboard_jspHelper.invoke8(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:974) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp$dashboard_jspHelper.invoke(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:1032) [java] at org.apache.jsp.tag.web.cru.threePanelPageContent_tag.doTag(org.apache.jsp.tag.web.cru.threePanelPageContent_tag:689) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspx_meth_rend_threePanelPageContent_0(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:210) [java] at org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.crucible.home.dashboard_jsp:145) [java] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [java] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) [java] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) [java] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [java] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) [java] at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1272) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) [java] at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) [java] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [java] at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) [java] at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) [java] at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) [java] at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1264) [java] at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
- is related to
-
CRUC-6136 java.lang.IllegalArgumentException: No local entity with key 'PROJECTNAME' and type 'class com.atlassian.applinks.application.fecru.FishEyeCrucibleProjectEntityTypeImpl' exists
- Closed