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

Edit content button logs warning for documents with pending publication request

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 3.2.1, 4.0.1, 4.1.0
    • 4.1.0
    • None
    • None

    Description

      When a document has a pending publication request, clicking its 'Edit content' button in the Channel Manager does not work and logs a warning. To the user it appears as if the button does not respond at all (no UI feedback).

      Steps to reproduce:

      1. login to the HAP as author
      2. change an existing event document and save & close it
      3. request publication
      4. select 'View > Hippo Acceptance Project' to view the document in the channel manager
      5. click the 'Edit content' button for the rendered event

      Expected: the document is shown read-only in the content perspective since a publication request is pending
      Actual: nothing happens and the following stacktrace is logged:

      02.09.2016 09:04:37 WARN  http-nio-8080-exec-4 [SCXMLWorkflowExecutor.handleException:153] Cannot invoke workflow documentworkflow action obtainEditableInstance: action not allowed or undefined
      02.09.2016 09:04:37 WARN  http-nio-8080-exec-4 [OpenDocumentEditorEventListener.openDocumentEditor:85] Failed to open editor for document with uuid 'b8f5eb45-7200-452a-b26e-3118a0dc60b8'
      org.hippoecm.frontend.service.EditorException: Workflow error when setting editor mode
      	at org.hippoecm.frontend.editor.HippostdPublishableEditor.setMode(HippostdPublishableEditor.java:224)
      	at org.onehippo.cms7.channelmanager.channeleditor.OpenDocumentEditorEventListener.openDocumentEditor(OpenDocumentEditorEventListener.java:80)
      	at org.onehippo.cms7.channelmanager.channeleditor.OpenDocumentEditorEventListener.onEvent(OpenDocumentEditorEventListener.java:65)
      	at org.wicketstuff.js.ext.ExtEventAjaxBehavior.handle(ExtEventAjaxBehavior.java:107)
      	at org.wicketstuff.js.ext.ExtEventAjaxBehavior.respond(ExtEventAjaxBehavior.java:102)
      	at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:633)
      	at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
      	at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
      	at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
      	at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
      	at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890)
      	at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      	at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
      	at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
      	at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
      	at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
      	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
      	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.hippoecm.repository.api.WorkflowException: Cannot invoke workflow documentworkflow action obtainEditableInstance: action not allowed or undefined
      	at org.onehippo.repository.scxml.SCXMLWorkflowExecutor.triggerAction(SCXMLWorkflowExecutor.java:294)
      	at org.onehippo.repository.scxml.SCXMLWorkflowExecutor.triggerAction(SCXMLWorkflowExecutor.java:255)
      	at org.onehippo.repository.documentworkflow.DocumentWorkflowImpl.obtainEditableInstance(DocumentWorkflowImpl.java:176)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:370)
      	at com.sun.proxy.$Proxy140.obtainEditableInstance(Unknown Source)
      	at org.hippoecm.frontend.editor.HippostdPublishableEditor.setMode(HippostdPublishableEditor.java:204)
      	... 41 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mdenburger Mathijs den Burger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: