Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1217

Renaming Fails after 3~N trials on a news article document containing empty image link

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 2.26.11
    • 2.26.13
    • None

    Description

      Reproduction Steps (it's a bit tedious to reproduce, but be patient):

      1. Create a project from the archetype (as directed in http://www.onehippo.org/trails/getting-started/hippo-essentials-getting-started.html):

      $ mvn archetype:generate \
        -DarchetypeGroupId=org.onehippo.cms7 \
        -DarchetypeArtifactId=hippo-project-archetype \
        -DarchetypeVersion=2.00.09 \
        -DarchetypeRepository=http://maven.onehippo.com/maven2
      

      Just accept the default settings by typing a return.

      2. Move to the project folder, build and run it (`mvn clean install && mvn -Pcargo.run').

      3. Visit http://localhost:8080/essentials/

      • Keep it as default and click on 'Get Started' link.
      • In the features, install only 'News'

      4. Stop the cargo.run tomcat, build again and run it. (`mvn clean install && mvn -Pcargo.run')

      5. Visit CMS and edit "myhippoproject/news/2015/04/The medusa news" document.

      6. Remove (clear) the current 'News Image' field.

      7. Save/close the document and publish the document.

      8. Close the document view as well.

      9. Open the "The medusa news" document again and take it offline.

      10. Click on Document/Rename menu item.

      11. Try to rename the document by appending a number.
      11.1. Rename it to "The medusa news2". Click on "Reset" link and click on "OK" button.
      11.2. Rename it to "The medusa news3". Click on "Reset" link and click on "OK" button.
      11.3. Rename it to "The medusa news4". Click on "Reset" link and click on "OK" button.
      11.4. Rename it to "The medusa news5". Click on "Reset" link and click on "OK" button.
      ...

      12. Then after 3~6 trial (11.1 ~ 11.6 probably), you get the error message in UI as shown in .
      And, you get the following exception in console:

      [INFO] [talledLocalContainer] 03.04.2015 00:01:34 ERROR http-bio-8080-exec-11 [SCXMLWorkflowExecutor.handleException:184] Destination path /content/documents/myhippoproject/news/2015/04/the-medusa-news4/the-medusa-news4 cannot be descendant of source path / in a move operation.
      [INFO] [talledLocalContainer] org.hippoecm.repository.api.WorkflowException: Destination path /content/documents/myhippoproject/news/2015/04/the-medusa-news4/the-medusa-news4 cannot be descendant of source path / in a move operation.
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.documentworkflow.task.AbstractDocumentTask.execute(AbstractDocumentTask.java:94)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.scxml.AbstractWorkflowTaskAction.doExecute(AbstractWorkflowTaskAction.java:64)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.scxml.AbstractAction.execute(AbstractAction.java:77)
      [INFO] [talledLocalContainer] 	at org.apache.commons.scxml2.semantics.SCXMLSemanticsImpl.executeContent(SCXMLSemanticsImpl.java:925)
      [INFO] [talledLocalContainer] 	at org.apache.commons.scxml2.semantics.SCXMLSemanticsImpl.executeTransitionContent(SCXMLSemanticsImpl.java:911)
      [INFO] [talledLocalContainer] 	at org.apache.commons.scxml2.semantics.SCXMLSemanticsImpl.microStep(SCXMLSemanticsImpl.java:249)
      [INFO] [talledLocalContainer] 	at org.apache.commons.scxml2.semantics.SCXMLSemanticsImpl.nextStep(SCXMLSemanticsImpl.java:176)
      [INFO] [talledLocalContainer] 	at org.apache.commons.scxml2.SCXMLExecutor.eventStep(SCXMLExecutor.java:418)
      [INFO] [talledLocalContainer] 	at org.apache.commons.scxml2.SCXMLExecutor.triggerEvents(SCXMLExecutor.java:413)
      [INFO] [talledLocalContainer] 	at org.apache.commons.scxml2.SCXMLExecutor.triggerEvent(SCXMLExecutor.java:381)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.scxml.SCXMLWorkflowExecutor.triggerAction(SCXMLWorkflowExecutor.java:294)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.scxml.SCXMLWorkflowExecutor.triggerAction(SCXMLWorkflowExecutor.java:258)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.documentworkflow.DocumentWorkflowImpl.rename(DocumentWorkflowImpl.java:239)
      [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.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:370)
      [INFO] [talledLocalContainer] 	at com.sun.proxy.$Proxy97.rename(Unknown Source)
      [INFO] [talledLocalContainer] 	at org.hippoecm.frontend.plugins.reviewedactions.DocumentWorkflowPlugin$1.execute(DocumentWorkflowPlugin.java:150)
      [INFO] [talledLocalContainer] 	at org.hippoecm.addon.workflow.StdWorkflow.execute(StdWorkflow.java:219)
      [INFO] [talledLocalContainer] 	at org.hippoecm.addon.workflow.StdWorkflow.execute(StdWorkflow.java:207)
      [INFO] [talledLocalContainer] 	at org.hippoecm.addon.workflow.StdWorkflow.invokeWorkflow(StdWorkflow.java:236)
      [INFO] [talledLocalContainer] 	at org.hippoecm.addon.workflow.AbstractWorkflowDialog.onOk(AbstractWorkflowDialog.java:54)
      [INFO] [talledLocalContainer] 	at org.hippoecm.frontend.dialog.AbstractDialog.handleSubmit(AbstractDialog.java:530)
      [INFO] [talledLocalContainer] 	at org.hippoecm.frontend.dialog.AbstractDialog$2.onSubmit(AbstractDialog.java:288)
      [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:538)
      [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.GeneratedMethodAccessor95.invoke(Unknown Source)
      [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(ListenerInterfaceRequestHandler.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.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:102)
      [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:1040)
      [INFO] [talledLocalContainer] 	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      [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:745)
      [INFO] [talledLocalContainer] Caused by: javax.jcr.RepositoryException: Destination path /content/documents/myhippoproject/news/2015/04/the-medusa-news4/the-medusa-news4 cannot be descendant of source path / in a move operation.
      [INFO] [talledLocalContainer] 	at org.apache.jackrabbit.core.SessionMoveOperation.<init>(SessionMoveOperation.java:69)
      [INFO] [talledLocalContainer] 	at org.apache.jackrabbit.core.SessionImpl.move(SessionImpl.java:873)
      [INFO] [talledLocalContainer] 	at org.hippoecm.repository.decorating.SessionDecorator.move(SessionDecorator.java:184)
      [INFO] [talledLocalContainer] 	at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.renameChildDocument(FolderWorkflowImpl.java:568)
      [INFO] [talledLocalContainer] 	at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.renameChildDocument(FolderWorkflowImpl.java:557)
      [INFO] [talledLocalContainer] 	at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.rename(FolderWorkflowImpl.java:613)
      [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.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:370)
      [INFO] [talledLocalContainer] 	at com.sun.proxy.$Proxy101.rename(Unknown Source)
      [INFO] [talledLocalContainer] 	at org.hippoecm.repository.standardworkflow.DefaultWorkflowImpl.rename(DefaultWorkflowImpl.java:126)
      [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.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:370)
      [INFO] [talledLocalContainer] 	at com.sun.proxy.$Proxy100.rename(Unknown Source)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.documentworkflow.task.RenameDocumentTask.doExecute(RenameDocumentTask.java:69)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.documentworkflow.task.AbstractDocumentTask.execute(AbstractDocumentTask.java:92)
      [INFO] [talledLocalContainer] 	... 70 more
      [INFO] [talledLocalContainer] 03.04.2015 00:01:34 WARN  http-bio-8080-exec-11 [AbstractWorkflowDialog.onOk:56] Could not execute workflow: Destination path /content/documents/myhippoproject/news/2015/04/the-medusa-news4/the-medusa-news4 cannot be descendant of source path / in a move operation.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wko Woonsan Ko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: