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
  3. JAHIA-3179

SP4: File overrides with the same name: problem when the file is already used in a published file field

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • xCM 5.0 SP4
    • xCM 5.0 SP4
    • None
    • SP4 21030

    Description

      I have a file field which is mapped to an image under /sahred/test.

      I renamed this image with the name of another image I have on my hard drive (cf other issue; my file field is not renamed). Once I rempapaed correctly my field field to the new name, I upload my second image (with the same name) in the same directory as the previous one.

      this asked me if I want to overides the previous file. I say yes (as I wanted to test the caches and the new WebDAV cache with such file overriding).

      This is crashing an exception (cf below). Now my file on my live page is taking 21 second to be displayed each time I click on reloard (cf screenshot).

      FilterCache

      {cumulative_inserts=0, hits=0, cumulative_evictions=0, inserts=0, cumulative_lookups=0, lookups=0, cumulative_hitratio=0.00, cumulative_hits=0, hitratio=0.00, evictions=0, size=0}

      2008-06-10 14:19:10,171: INFO [org.jahia.services.search.lucene.fs.LuceneCoreSearcher] - Registered new searcher org.jahia.services.search.lucene.fs.JahiaIndexSearcher@924c97
      2008-06-10 14:19:24,562: FATAL [file-content-store] - Thread Thread[http-8080-Processor22,5,main] failed to prepare transaction branch http-8080-Processor22-1213100354343-79
      org.apache.commons.transaction.file.ResourceManagerException: http-8080-Processor22-1213100354343-79: Could not upgrade to commit lock for resource at '/2008-06-10/12-55/jahiaServer1/7_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 14:19:24,562: WARN [org.apache.slide.transaction.SlideTransaction] - Prepare failure: Resource manager org.jahia.services.webdav.stores.JahiaDescriptorsStore@7a1904 Error code UNKNOWN in Transaction 79 xid [B@3a65a1-[B@1e6510c in thread http-8080-Processor22
      javax.transaction.xa.XAException: org.apache.commons.transaction.file.ResourceManagerException: http-8080-Processor22-1213100354343-79: Could not upgrade to commit lock for resource at '/2008-06-10/12-55/jahiaServer1/7_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 14:19:24,578: 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 14:19:24,593: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/engineName/filemanager/op/edit/page2] user=[root] ip=[127.0.0.1] in [10265ms]
      2008-06-10 14:19:40,468: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/page2] user=[guest] ip=[127.0.0.1] in [15ms]
      2008-06-10 14:19:41,109: INFO [org.apache.slide.webdav.JahiaWebdavServlet] - Webdav request [GET /site/test/shared/sdfsdf/webclipping.png] user=[guest]
      2008-06-10 14:19:41,125: INFO [org.apache.slide.webdav.JahiaWebdavServlet] - Processed [GET /site/test/shared/sdfsdf/webclipping.png] in 16ms
      2008-06-10 14:20:03,093: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/page2] user=[guest] ip=[127.0.0.1] in [0ms]
      2008-06-10 14:20:03,546: INFO [org.apache.slide.webdav.JahiaWebdavServlet] - Webdav request [GET /site/test/shared/sdfsdf/webclipping.png] user=[guest]
      2008-06-10 14:20:03,625: INFO [org.apache.slide.webdav.JahiaWebdavServlet] - Processed [GET /site/test/shared/sdfsdf/webclipping.png] in 79ms
      2008-06-10 14:20:29,281: INFO [org.apache.slide.webdav.JahiaWebdavServlet] - Webdav request [GET /site/test/shared/sdfsdf/webclipping.png] user=[guest]
      2008-06-10 14:20:29,343: INFO [org.apache.slide.webdav.JahiaWebdavServlet] - Processed [GET /site/test/shared/sdfsdf/webclipping.png] in 62ms
      [GC 166256K->144192K(956352K), 0.0113176 secs]

      TestRail: Results

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 5.0 SP4