Description
Update all content does not process entries in the CND that do not have a corresponding entry under hippo:namespaces. The resulting updated namespace will not have these entries. Because of this, any instance of a node type that disappeard this way will cause update all content to fail.
- start quickstart war with clean repo
- log in to console as admin
- import defaultcontent.cnd (this will add a node type (foo), and a property (test) to article, in the defaultcontent namespace)
- browse to /content/documents/articles
- import crash.xml (this will import a document of type 'article' containing the new property 'test')
- import foo.xml (this will add a node of the new type 'foo')
- write changes to repository
- log in to cms as admin
- go to documents tab
- open 'configuration'
- select 'defaultcontent' namespace
- in context menu select 'update all content'
- in the dialog click 'OK'
Update all content will fail with the following exception:
17.11.2010 13:46:52 ERROR [org.hippoecm.frontend.editor.workflow.dialog.RemodelWizard$Step2$1.getLazyLoadComponent():88] Error during workflow execution
org.hippoecm.repository.api.WorkflowException: javax.jcr.nodetype.NoSuchNodeTypeException:
foo
- now log in to the console again
- click export CND
- choose defaultcontent namespace
- the new type 'foo' and the property 'test' under article have disappeared
BTW if you try this with only the property but not the node type (foo), update all content will shows "success" in the dialog and no exceptions are thrown, but the property will have disappeared in the namespace and all documents of the respective type.