Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-8266

Console crashes when you try to copy node to be its own child node

    XMLWordPrintable

Details

    • Sprint 89

    Description

      It is not possible to copy a node and make the destination a child node of the node you try to copy. Instead of giving a error message, the console application becomes very slow to end up in 500 state.

      I looks like the org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573) comes in an infinite loop. See log snippet below.

      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copyToChain(JcrUtils.java:573)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copy(JcrUtils.java:521)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.console.menu.copy.CopyDialog.onOk(CopyDialog.java:138)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.dialog.AbstractDialog.handleSubmit(AbstractDialog.java:517)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.dialog.AbstractDialog$2.onSubmit(AbstractDialog.java:275)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.dialog.ButtonWrapper$1.onSubmit(ButtonWrapper.java:80)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:108)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:179)
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.dialog.AbstractDialog.delegateSubmit(AbstractDialog.java:525)
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:156)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:123)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:626)
      [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:606)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
      [INFO] [talledLocalContainer] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandl
      er.java:250)
      [INFO] [talledLocalContainer] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java
      :236)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:263)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      [INFO] [talledLocalContainer] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      [INFO] [talledLocalContainer] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:724)

      Attachments

        1. copy_error.jpg
          256 kB
          Pankaj Gupta
        2. copynode_childnode_1.jpg
          194 kB
          Pankaj Gupta
        3. copynode_childnode_2.jpg
          155 kB
          Pankaj Gupta

        Issue Links

          Activity

            People

              pgupta Pankaj Gupta (Inactive)
              bleunis Bert Leunis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: