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

Cannot publish restored version of document

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Low
    • Resolution: Outdated
    • None
    • Icebox
    • None
    • None

    Description

      When an older version of a document is restored from the revision history, it cannot be published directly again.

      Steps to reproduce:
      1. as admin, create a new document
      2. choose 'Save & Close'
      3. choose 'Publication -> Publish'
      4. choose 'Document -> Show revision history'
      5. select the only version available
      6. choose 'Restore'
      7. choose 'Publication -> Publish'

      Expected behavior: the restored version of the document is published
      Actual behavior: a popup is shown saying "Unable to perform operation. Node is checked-in. "

      The following error is also logged:

      [INFO] [talledLocalContainer] 03.05.2011 15:31:20 ERROR [org.hippoecm.repository.impl.DocumentManagerImpl.putObject():169] javax.jcr.version.VersionException: Unable to perform operation. Node is checked-in.
      [INFO] [talledLocalContainer] javax.jcr.version.VersionException: Unable to perform operation. Node is checked-in.
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:284)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemValidator.checkModify(ItemValidator.java:248)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemRemoveOperation.perform(ItemRemoveOperation.java:70)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.remove(ItemImpl.java:322)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.ItemDecorator.remove(ItemDecorator.java:154)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.impl.NodeDecorator.remove(NodeDecorator.java:102)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.ocm.ValueMappingStrategy.storeObjectField(ValueMappingStrategy.java:751)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.ocm.ValueMappingStrategy.store(ValueMappingStrategy.java:672)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.ocm.ValueMappingStrategy.update(ValueMappingStrategy.java:584)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.ocm.UpdateFieldManager.storeObjectField(UpdateFieldManager.java:53)
      [INFO] [talledLocalContainer] at org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:1043)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.reviewedactions.BasicReviewedActionsWorkflowImpl.jdoProvideField(BasicReviewedActionsWorkflowImpl.java)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.reviewedactions.FullReviewedActionsWorkflowImpl.jdoProvideField(FullReviewedActionsWorkflowImpl.java)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.reviewedactions.BasicReviewedActionsWorkflowImpl.jdoProvideFields(BasicReviewedActionsWorkflowImpl.java)
      [INFO] [talledLocalContainer] at org.datanucleus.jdo.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl.java:2923)
      [INFO] [talledLocalContainer] at org.datanucleus.state.ObjectProviderImpl.provideFields(ObjectProviderImpl.java:65)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.ocm.JcrPersistenceHandler.updateObject(JcrPersistenceHandler.java:136)
      [INFO] [talledLocalContainer] at org.datanucleus.jdo.state.JDOStateManagerImpl.flush(JDOStateManagerImpl.java:4841)
      [INFO] [talledLocalContainer] at org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:3179)
      [INFO] [talledLocalContainer] at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:3119)
      [INFO] [talledLocalContainer] at org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:3260)
      [INFO] [talledLocalContainer] at org.datanucleus.ObjectManagerImpl$2.transactionPreCommit(ObjectManagerImpl.java:324)
      [INFO] [talledLocalContainer] at org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:394)
      [INFO] [talledLocalContainer] at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:279)
      [INFO] [talledLocalContainer] at org.datanucleus.jdo.JDOTransaction.commit(JDOTransaction.java:90)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.impl.DocumentManagerImpl.putObject(DocumentManagerImpl.java:164)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:606)
      [INFO] [talledLocalContainer] at $Proxy43.publish(Unknown Source)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.reviewedactions.FullReviewedActionsWorkflowPlugin$4.execute(FullReviewedActionsWorkflowPlugin.java:192)
      [INFO] [talledLocalContainer] at org.hippoecm.addon.workflow.StdWorkflow.execute(StdWorkflow.java:176)
      [INFO] [talledLocalContainer] at org.hippoecm.addon.workflow.StdWorkflow.execute(StdWorkflow.java:162)
      [INFO] [talledLocalContainer] at org.hippoecm.addon.workflow.StdWorkflow.invoke(StdWorkflow.java:150)
      [INFO] [talledLocalContainer] at org.hippoecm.addon.workflow.ActionDescription.run(ActionDescription.java:80)
      [INFO] [talledLocalContainer] at org.hippoecm.addon.workflow.MenuItem$1.onClick(MenuItem.java:39)
      [INFO] [talledLocalContainer] at org.hippoecm.addon.workflow.MenuLink$1.onEvent(MenuLink.java:45)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:302)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:95)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:662)

      Workaround: edit the document again, save it and then publish it.

      Attachments

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            mdenburger Mathijs den Burger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: