cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to delete a certain file in 4.2.c

zanity84
Champ in-the-making
Champ in-the-making
Hello,

I am testing out 4.2.c and am loving it so far. However, I am encountering an interesting problem that I hope can be resolved easily. To test it out, I uploaded some files, including a docx, and a couple txt files. When I went to delete them, I received an error "unable to delete filename.txt". This is weird, because it is only applying to one document in particular, a text file, whereas I can delete any other files as needed. I tried to fully re-index SOLR, restarting the service, and making sure my alfresco-global.properties was configured correctly. Any ideas?

Here's my alfresco.log
15:14:20,691 ERROR [org.alfresco.repo.node.integrity.IntegrityChecker] Found 1 integrity violations:
The association target multiplicity has been violated:
   Source Node: workspace://SpacesStore/1b2d4934-bede-4a32-b7eb-ddc2f5ba45c6
   Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/download/1.0}download], name={http://www.alfresco.org/model/download/1.0}requestedNodes, target class={http://www.alfresco.org/model/content/1.0}cmobject, source role=null, target role=null]
   Required target Multiplicity: 1..*
   Actual target Multiplicity: 0
15:14:20,719 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 11260050 Found 1 integrity violations:
The association target multiplicity has been violated:
   Source Node: workspace://SpacesStore/1b2d4934-bede-4a32-b7eb-ddc2f5ba45c6
   Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/download/1.0}download], name={http://www.alfresco.org/model/download/1.0}requestedNodes, target class={http://www.alfresco.org/model/content/1.0}cmobject, source role=null, target role=null]
   Required target Multiplicity: 1..*
   Actual target Multiplicity: 0
org.alfresco.repo.node.integrity.IntegrityException: 11260050 Found 1 integrity violations:
The association target multiplicity has been violated:
   Source Node: workspace://SpacesStore/1b2d4934-bede-4a32-b7eb-ddc2f5ba45c6
   Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/download/1.0}download], name={http://www.alfresco.org/model/download/1.0}requestedNodes, target class={http://www.alfresco.org/model/content/1.0}cmobject, source role=null, target role=null]
   Required target Multiplicity: 1..*
   Actual target Multiplicity: 0
   at org.alfresco.repo.node.integrity.IntegrityChecker.checkIntegrity(IntegrityChecker.java:661)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:686)
   at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:95)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:927)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:737)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:472)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:455)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
15:16:34,919 ERROR [org.alfresco.repo.node.integrity.IntegrityChecker] Found 1 integrity violations:
The association target multiplicity has been violated:
   Source Node: workspace://SpacesStore/1b2d4934-bede-4a32-b7eb-ddc2f5ba45c6
   Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/download/1.0}download], name={http://www.alfresco.org/model/download/1.0}requestedNodes, target class={http://www.alfresco.org/model/content/1.0}cmobject, source role=null, target role=null]
   Required target Multiplicity: 1..*
   Actual target Multiplicity: 0
15:16:34,943 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 11260144 Found 1 integrity violations:
The association target multiplicity has been violated:
   Source Node: workspace://SpacesStore/1b2d4934-bede-4a32-b7eb-ddc2f5ba45c6
   Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/download/1.0}download], name={http://www.alfresco.org/model/download/1.0}requestedNodes, target class={http://www.alfresco.org/model/content/1.0}cmobject, source role=null, target role=null]
   Required target Multiplicity: 1..*
   Actual target Multiplicity: 0
org.alfresco.repo.node.integrity.IntegrityException: 11260144 Found 1 integrity violations:
The association target multiplicity has been violated:
   Source Node: workspace://SpacesStore/1b2d4934-bede-4a32-b7eb-ddc2f5ba45c6
   Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/download/1.0}download], name={http://www.alfresco.org/model/download/1.0}requestedNodes, target class={http://www.alfresco.org/model/content/1.0}cmobject, source role=null, target role=null]
   Required target Multiplicity: 1..*
   Actual target Multiplicity: 0
   at org.alfresco.repo.node.integrity.IntegrityChecker.checkIntegrity(IntegrityChecker.java:661)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:686)
   at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:95)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:927)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:737)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:472)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:455)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
7 REPLIES 7

morganp1
Confirmed Champ
Confirmed Champ
Hello,

did you find a solution to this issue?

If you try to download a folder as zip file, then you will not be able to delete it and i think it's what happened to you. This issue could be seen here: https://issues.alfresco.com/jira/browse/ALF-18453

Alfresco Community 4.2.c or 4.2.b => Same problem.
Alfresco Community 4.2.a => you just can't download a folder (and i will try it on 4.0.e too).

monocromo
Champ in-the-making
Champ in-the-making
I have the same problem with alfresco 4.2.a, i can't solve the issue and I do not understand how it is generating the error.

xsp
Champ in-the-making
Champ in-the-making
Hi,
I have exactly the same problem. Did you find a solution for it? I am using community 4.2.c
Thanks

morganp1
Confirmed Champ
Confirmed Champ
Hi,

After some hours (3 or 4), you should be able to delete the folder… No real solution

mitpatoliya
Star Collaborator
Star Collaborator
the noderef which is there in the logs is it same as the file which is you are not able to delete?
workspace://SpacesStore/1b2d4934-bede-4a32-b7eb-ddc2f5ba45c6

vdewillem
Champ in-the-making
Champ in-the-making
Updating the download model to the latest version from svn seems to solve this issue.
https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/config/al...

The error indicates a problem with a target multiplicity. Changing the download:requestedNode-association's mandatory target from "true" to "false" prevents the integrity violation.

sshvetsov
Champ in-the-making
Champ in-the-making
Seeing the same problem on my 4.2.c installation. In my case, if I download several files as zip, I can delete all files except the last one (alphbetically). Does anyone know if this issue has been resolved in Alfresco Community 4.2.e?