Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.24.00
-
None
-
None
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