cancel
Showing results for 
Search instead for 
Did you mean: 

Can not delete a file from Share site

zarzuela
Champ in-the-making
Champ in-the-making
I am unable to delete a file from one of my Share site's document library. I am an admin for the site, I can delete other files. I have mount the directory using CIFS and able to rename the file, but not able to delete. Any suggestions? I am running 3.2.
7 REPLIES 7

gronfelt
Champ in-the-making
Champ in-the-making
Are there any errors in the log?

zarzuela
Champ in-the-making
Champ in-the-making
When the user originally reported the problem they received the following:

An error has occured in the Share component: /share/service/components/document-details/document-versions.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 09010009 Failed to process template org/alfresco/components/document-details/document-
versions.get.html.ftl
Server: Alfresco Community v3.2.0 (2039) schema 2,019
Time: Oct 1, 2009 9:36:05 AM
Click here to view full technical information on the error.
Exception: freemarker.template.TemplateException - Expected collection or sequence. versions evaluated instead to
freemarker.template.SimpleHash on line 5, column 8 in org/alfresco/components/document-details/document-
versions.get.html.ftl.
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:190)
freemarker.core.Environment.visit(Environment.java:415)
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:185)
org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:523)
org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:241)
org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
org.alfresco.web.scripts.PresentationContainer.executeScript(PresentationContainer.java:60)
org.alfresco.web.scripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:186)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:262)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
org.alfresco.web.scripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:329)
org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
org.alfresco.web.framework.render.RenderHelper.processComponent(RenderHelper.java:341)
org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:451)
org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:434)
org.alfresco.web.framework.render.bean.ComponentRenderer.body(ComponentRenderer.java:135)
org.alfresco.web.framework.render.RenderUtil.renderRegionComponents(RenderUtil.java:328)
org.alfresco.web.site.taglib.RegionIncludeTag.doStartTag(RegionIncludeTag.java:43)
org.alfresco.tools.TagUtil.execute(TagUtil.java:147)
org.alfresco.tools.TagUtil.execute(TagUtil.java:81)
org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
org.alfresco.web.scripts.GenericFreemarkerTagDirective.execute(GenericFreemarkerTagDirective.java:127)
freemarker.core.Environment.visit(Environment.java:261)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:185)
org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:266)
org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
org.alfresco.web.framework.render.RenderHelper.processRenderable(RenderHelper.java:278)
org.alfresco.web.framework.render.bean.ChromeRenderer.body(ChromeRenderer.java:60)
org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
org.alfresco.web.framework.render.bean.RegionRenderer.body(RegionRenderer.java:134)
org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
org.alfresco.web.framework.render.RenderUtil.startRegionRenderer(RenderUtil.java:273)
org.alfresco.web.framework.render.RenderUtil.renderRegion(RenderUtil.java:213)
org.alfresco.web.framework.render.PresentationUtil.renderRegion(PresentationUtil.java:125)
org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:109)
org.alfresco.tools.TagUtil.execute(TagUtil.java:147)
org.alfresco.tools.TagUtil.execute(TagUtil.java:81)
org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:128)
freemarker.core.Environment.visit(Environment.java:261)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.visit(Environment.java:393)
freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Macro$Context.runMacro(Macro.java:164)
freemarker.core.Environment.visit(Environment.java:601)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:185)
org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:266)
org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:385)
org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140)
org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:86)
org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:512)
org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:389)
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:165)
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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
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:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Unknown Source)
Exception: org.alfresco.web.scripts.WebScriptException - 09010009 Failed to process template
org/alfresco/components/document-details/document-versions.get.html.ftl
org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:189)

subsequent attempts show no errors. Just a pop up stating that the file could not be deleted.

Thanks!

mikeh
Star Contributor
Star Contributor
Try to delete the file using the Explorer client and note any exception in the corresponding log file.

Mike

mike54
Champ in-the-making
Champ in-the-making
Hi!

I think I have very similar problem!

I have noticed the following:
When I add a document or Document Library folder that contains spaces like
"my document.odt" I will get "Could not delete" error.
When I simply edit meta data and change the name to "my_document.odt" file will be easily deleted.
At the same time I can easily navigate using Alfresco and delete that document without renaming (with spaces)

I have also noticed that this situation only occurs when I use Share site via Apache HTTPD server.
When I connect directly to Tomcat on port 8080 it works OK.

It is really annoying, as I have spent a week setting up Alfresco and Share - most of the things work quite well including OpenOffice connection (started as a service). And now I have found this strange bug, that makes my Share site rather useless…

I'm running
Centos 5.3
Apache HTTPD + Tomcat 5 (two virtual hosts for Alfresco and Share mapped to Tomcat using Mod_jk)
OpenOffice 3.1
Alfresco + Share 3.2

So… is it something that can be solved with Apache configuration…?
Please help Smiley Happy
Thank you!

zarzuela
Champ in-the-making
Champ in-the-making
When I try to delete from the Alfresco Explorer I get the error:

•Unable to delete File due to system error: Non-unique path: found : /app:company_home/app:user_homes 0

gronfelt
Champ in-the-making
Champ in-the-making
So… is it something that can be solved with Apache configuration…?
Please help Smiley Happy
Thank you!

Yes, the root of the problem is probably that Apache and mod_jk forwards URI:s parsed, which means that Apache will parse spaces, meaning that Alfresco won't be able to use the URI to locate the correct file.

You could fix this by adding the following to httpd.conf:

JkOptions +ForwardURICompatUnparsed

(Or modify the existing JkOptions entry if there is one)

mike54
Champ in-the-making
Champ in-the-making
You could fix this by adding the following to httpd.conf:

JkOptions +ForwardURICompatUnparsed

(Or modify the existing JkOptions entry if there is one)

Thank you!
That solved the problem - I hope there are no "side effects" Smiley Happy