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

Updater executer fails with InvalidItemStateException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.24.00
    • Fix Version/s: 2.24.00
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      Description

      A Groovy update script that traverses /content/documents fails immediately on the first hippo:translation node it encounters.

      Steps to reproduce:
      1. start GoGreen
      2. navigate to the "Script and Run Updaters" panel in the Dev perspective
      3. enter the following Groovy script:

      package org.hippoecm.frontend.plugins.cms.dev.updater

      import org.onehippo.repository.update.BaseUpdater
      import javax.jcr.Node

      public class UpdaterTemplate extends BaseUpdater {

      public boolean update(Node node)

      { log.info(node.getPath()); }

      public boolean revert(Node node)

      { throw new UnsupportedOperationException("Updater doesn't implement revert method") }

      }

      4. select 'Path' and enter the path '/content/documents'
      5. click 'Dry Run'

      Expected result: the script logs the path of all nodes under /content/documents
      Actual result: the script quits after the first hippo:translation node with an InvalidItemStateException:

      INFO Executing updater test
      INFO /content/documents
      INFO /content/documents/hippogogreen
      INFO /content/documents/hippogogreen/hippotranslation:translations
      INFO /content/documents/hippogogreen/hippo:translation
      ERROR Unexpected exception while running updater path visitor - javax.jcr.InvalidItemStateException: Item does not exist anymore: a61bc924-3303-40e4-b4cd-754992eeee53
      INFO No query set. Skipping query visitor.
      INFO Finished executing updater test

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                svoortman Simon Voortman (Inactive)
                Reporter:
                mdenburger Mathijs den Burger (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: