AnsweredAssumed Answered

How do I remove a Site dashlet retroactively?

Question asked by rockshore on Oct 18, 2011
Alfresco 3.4.d Community

We have a number of Sites that use the default dashboard layout, which includes Recently Modified Documents [docsummary]. I've recently submitted a bug report that is said to have been fixed in Alfresco 4.0.a Community.

https://issues.alfresco.com/jira/browse/ALF-10879

I have seen how to remove dashlets from sites yet to be created here:

https://forums.alfresco.com/en/viewtopic.php?f=47&t=23669

and here:

https://forums.alfresco.com/en/viewtopic.php?f=47&t=37841

The way to go about removing a dashlet retroactively isn't well documented; could someone with a bit more knowledge point me in the right direction?

At the moment, I'm getting:
The Web Script /share/service/components/dashlets/docsummary has responded with a status of 404 - Not Found.

404 Description:   Requested resource is not available.

Message:   09180005 Script url /components/dashlets/docsummary does not map to a Web Script.
   
Exception:   org.springframework.extensions.webscripts.WebScriptException - 09180005 Script url /components/dashlets/docsummary does not map to a Web Script.
   
   org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:153)
   org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:284)
   org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
   org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:264)
   org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:93)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:600)
   org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:539)
   org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:893)
   org.springframework.extensions.webscripts.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:71)
   freemarker.core.Environment.visit(Environment.java:263)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Environment.process(Environment.java:190)
   org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
   org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:345)
   org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
   org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:186)
   org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:89)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:80)
   org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:92)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:492)
   org.springframework.extensions.webscripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:75)
   freemarker.core.Environment.visit(Environment.java:263)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   freemarker.core.Environment.visit(Environment.java:417)
   freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   freemarker.core.Environment.visit(Environment.java:417)
   freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Macro$Context.runMacro(Macro.java:172)
   freemarker.core.Environment.visit(Environment.java:603)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.IfBlock.accept(IfBlock.java:82)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Macro$Context.runMacro(Macro.java:172)
   freemarker.core.Environment.visit(Environment.java:603)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Environment.visit(Environment.java:395)
   freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Macro$Context.runMacro(Macro.java:172)
   freemarker.core.Environment.visit(Environment.java:603)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Environment.process(Environment.java:190)
   org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
   org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:345)
   org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
   org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:378)
   org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:123)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:408)
   org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:388)
   org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:329)
   org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:285)
   org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
   org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:301)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
   org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
   org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
   org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
   org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
   java.lang.Thread.run(Thread.java:619)
However, if I add a new Site, the dashlet is no longer visible, so I'm halfway there!

Thanks in advance for any advice.

Outcomes