Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-3175

SP4: File Manager: Mutliple delete of file with one file published in a file field -> exception raised

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • xCM 5.0 SP4
    • xCM 5.0 SP4
    • None
    • SP4 21030

    Description

      I have two images in a shared/test directory. One of the image is published in a file field and the other not.

      I select both images and click on the delete icon (multiple delete). I have no integrity warning. I accept the deletion and crack:

      2008-06-10 13:19:11,046: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/engineName/filemanager/op/edit/page2] user=[root] ip=[127.0.0.1] in [46ms]
      2008-06-10 13:19:24,312: FATAL [file-content-store] - Thread Thread[http-8080-Processor22,5,main] failed to prepare transaction branch http-8080-Processor22-1213096753953-45
      org.apache.commons.transaction.file.ResourceManagerException: http-8080-Processor22-1213096753953-45: Could not upgrade to commit lock for resource at '/2008-06-10/12-52/jahiaServer1/5_1.0' (ERR_NO_LOCK)
      at org.apache.commons.transaction.file.FileResourceManager$TransactionContext.upgradeLockToCommit(FileResourceManager.java:1481)
      at org.apache.commons.transaction.file.FileResourceManager.prepareTransaction(FileResourceManager.java:597)
      at org.apache.slide.store.txfile.AbstractTxFileStoreService.prepare(AbstractTxFileStoreService.java:211)
      at org.jahia.services.webdav.stores.JahiaDescriptorsStore.prepare(JahiaDescriptorsStore.java:1749)
      at org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.java:251)
      at org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransactionManager.java:186)
      at org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessTokenImpl.java:390)
      at org.jahia.services.webdav.DAVFileAccess.commitTransaction(DAVFileAccess.java:283)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.processLastScreen(DAVFilemanager_Engine.java:622)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.handleActions(DAVFilemanager_Engine.java:185)
      at org.jahia.operations.valves.EngineValve.processEngineRequest(EngineValve.java:180)
      at org.jahia.operations.valves.EngineValve.invoke(EngineValve.java:82)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.J2ProcessActionValve.invoke(J2ProcessActionValve.java:144)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.SkeletonAggregatorValve.invoke(SkeletonAggregatorValve.java:73)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.PageAccessCheckValve.invoke(PageAccessCheckValve.java:73)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.OperationModeCheckValve.invoke(OperationModeCheckValve.java:83)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.SiteCheckValve.invoke(SiteCheckValve.java:78)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.EsiFragmentCacheReadValve.invoke(EsiFragmentCacheReadValve.java:329)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.EsiUrlCookieCheckValve.invoke(EsiUrlCookieCheckValve.java:313)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.pipelines.impl.GenericPipeline.invoke(GenericPipeline.java:195)
      at org.jahia.operations.OperationManager.handleOperations(OperationManager.java:100)
      at org.jahia.bin.JahiaAction.execute(JahiaAction.java:76)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
      at org.jahia.bin.JahiaRequestProcessor.process(JahiaRequestProcessor.java:82)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
      at org.jahia.bin.Jahia.process(Jahia.java:1661)
      at org.jahia.bin.Jahia.service(Jahia.java:864)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.jahia.bin.filters.esi.ESIFilter.doFilter(ESIFilter.java:110)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:619)
      2008-06-10 13:19:24,312: WARN [org.apache.slide.transaction.SlideTransaction] - Prepare failure: Resource manager org.jahia.services.webdav.stores.JahiaDescriptorsStore@7a1904 Error code UNKNOWN in Transaction 45 xid [B@b5d696-[B@1b2ad5 in thread http-8080-Processor22
      javax.transaction.xa.XAException: org.apache.commons.transaction.file.ResourceManagerException: http-8080-Processor22-1213096753953-45: Could not upgrade to commit lock for resource at '/2008-06-10/12-52/jahiaServer1/5_1.0' (ERR_NO_LOCK)
      at org.apache.slide.store.txfile.AbstractTxFileStoreService.createXAException(AbstractTxFileStoreService.java:460)
      at org.apache.slide.store.txfile.AbstractTxFileStoreService.prepare(AbstractTxFileStoreService.java:226)
      at org.jahia.services.webdav.stores.JahiaDescriptorsStore.prepare(JahiaDescriptorsStore.java:1749)
      at org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.java:251)
      at org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransactionManager.java:186)
      at org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessTokenImpl.java:390)
      at org.jahia.services.webdav.DAVFileAccess.commitTransaction(DAVFileAccess.java:283)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.processLastScreen(DAVFilemanager_Engine.java:622)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.handleActions(DAVFilemanager_Engine.java:185)
      at org.jahia.operations.valves.EngineValve.processEngineRequest(EngineValve.java:180)
      at org.jahia.operations.valves.EngineValve.invoke(EngineValve.java:82)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.J2ProcessActionValve.invoke(J2ProcessActionValve.java:144)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.SkeletonAggregatorValve.invoke(SkeletonAggregatorValve.java:73)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.PageAccessCheckValve.invoke(PageAccessCheckValve.java:73)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.OperationModeCheckValve.invoke(OperationModeCheckValve.java:83)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.SiteCheckValve.invoke(SiteCheckValve.java:78)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.EsiFragmentCacheReadValve.invoke(EsiFragmentCacheReadValve.java:329)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.EsiUrlCookieCheckValve.invoke(EsiUrlCookieCheckValve.java:313)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.pipelines.impl.GenericPipeline.invoke(GenericPipeline.java:195)
      at org.jahia.operations.OperationManager.handleOperations(OperationManager.java:100)
      at org.jahia.bin.JahiaAction.execute(JahiaAction.java:76)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
      at org.jahia.bin.JahiaRequestProcessor.process(JahiaRequestProcessor.java:82)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
      at org.jahia.bin.Jahia.process(Jahia.java:1661)
      at org.jahia.bin.Jahia.service(Jahia.java:864)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.jahia.bin.filters.esi.ESIFilter.doFilter(ESIFilter.java:110)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:619)
      2008-06-10 13:19:24,328: ERROR [org.jahia.services.webdav.DAVFileAccess] - Cannot commit transaction
      javax.transaction.RollbackException
      at org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.java:328)
      at org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransactionManager.java:186)
      at org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessTokenImpl.java:390)
      at org.jahia.services.webdav.DAVFileAccess.commitTransaction(DAVFileAccess.java:283)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.processLastScreen(DAVFilemanager_Engine.java:622)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.handleActions(DAVFilemanager_Engine.java:185)
      at org.jahia.operations.valves.EngineValve.processEngineRequest(EngineValve.java:180)
      at org.jahia.operations.valves.EngineValve.invoke(EngineValve.java:82)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.J2ProcessActionValve.invoke(J2ProcessActionValve.java:144)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.SkeletonAggregatorValve.invoke(SkeletonAggregatorValve.java:73)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.PageAccessCheckValve.invoke(PageAccessCheckValve.java:73)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.OperationModeCheckValve.invoke(OperationModeCheckValve.java:83)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.SiteCheckValve.invoke(SiteCheckValve.java:78)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.EsiFragmentCacheReadValve.invoke(EsiFragmentCacheReadValve.java:329)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.EsiUrlCookieCheckValve.invoke(EsiUrlCookieCheckValve.java:313)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.pipelines.impl.GenericPipeline.invoke(GenericPipeline.java:195)
      at org.jahia.operations.OperationManager.handleOperations(OperationManager.java:100)
      at org.jahia.bin.JahiaAction.execute(JahiaAction.java:76)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
      at org.jahia.bin.JahiaRequestProcessor.process(JahiaRequestProcessor.java:82)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
      at org.jahia.bin.Jahia.process(Jahia.java:1661)
      at org.jahia.bin.Jahia.service(Jahia.java:864)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.jahia.bin.filters.esi.ESIFilter.doFilter(ESIFilter.java:110)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:619)
      2008-06-10 13:19:24,343: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/engineName/filemanager/op/edit/page2] user=[root] ip=[127.0.0.1] in [10390ms]
      [GC 165525K->135865K(964288K), 0.0118314 secs]

      TestRail: Results

        Attachments

          Activity

            People

              tdraier_old Thomas Draier (Inactive)
              scroisier Stephane Croisier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 5.0 SP4