Details

    • Sub-task
    • Resolution: Done
    • Critical
    • WCM 5.0 SP3
    • WCM 5.0 SP2
    • None
    • Sp2 17448

    Description

      I activated the FileLockOnPublication option in the jahia.properties file. Then I tried to move from /shared/abc to a public user directory a full directory including one locked file already published. This gives me an error within the engine and an exception in the console.

      So could we move directories with locked files (as the file will still exists after the move)? And if we want to prevent such an operation, we could at least catch the exception and generate a more readable msg for the end-user.

      2007-06-07 14:55:58,359: [jsp.jahia.engines.engine] DEBUG - JSP: /jsp/jahia/engines/filemanager/view.jsp
      2007-06-07 14:55:58,359: [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/engineName/filemanager/op/edit/home/about_us] esi=[not cached] user=[root] ip=[127.0.0.1] in [16ms]
      2007-06-07 14:56:22,750: [org.jahia.services.webdav.DAVFileAccess] ERROR - SlideException in moveFile
      Object /shared/Fichiers dΘ lΘ ⁿ tests/Θrror.JPG is already locked

      at org.apache.slide.macro.MacroImpl.rebind(MacroImpl.java:279)
      at org.apache.slide.macro.MacroImpl.move(MacroImpl.java:461)
      at org.apache.slide.macro.MacroImpl.move(MacroImpl.java:407)
      at org.apache.slide.macro.MacroImpl.move(MacroImpl.java:375)
      at org.jahia.services.webdav.DAVFileAccess.moveFile(DAVFileAccess.java:1871)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.moveFile(DAVFilemanager_Engine.java:908)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.processLastScreen(DAVFilemanager_Engine.java:385)
      at org.jahia.engines.filemanager.DAVFilemanager_Engine.handleActions(DAVFilemanager_Engine.java:169)
      at org.jahia.operations.valves.EngineValve.invoke(EngineValve.java:111)
      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.CacheReadValve.invoke(CacheReadValve.java:65)
      at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
      at org.jahia.operations.valves.PageAccessCheckValve.invoke(PageAccessCheckValve.java:64)
      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:326)
      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:72)
      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:1612)
      at org.jahia.bin.Jahia.service(Jahia.java:841)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jahia.bin.filters.esi.ESIFilter.doFilter(ESIFilter.java:110)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:619)
      2007-06-07 14:56:22,750: [jsp.jahia.engines.engine] DEBUG - LastScreen: error, JspSource: filemanager_error, EngineName: filemanager
      2007-06-07 14:56:22,765: [jsp.jahia.engines.engine] DEBUG - JSP: /jsp/jahia/engines/filemanager/error.jsp
      2007-06-07 14:56:22,890: [org.jahia.bin.Jahia] INFO - Processed [/jahia/Jahia/engineName/filemanager/op/edit/home/about_us] esi=[not cached] user=[root] ip=[127.0.0.1] in [312ms]

      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
                      WCM 5.0 SP3