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

Update all content fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • r2.16.02
    • r2.16.03, r2.17.02
    • None
    • None

    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:

      {http://www.hippoecm.org/defaultcontent/nt/1.7}

      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.

      Attachments

        1. crash.xml
          3 kB
        2. defaultcontent_after_update_all_content.cnd
          1 kB
        3. defaultcontent.cnd
          1 kB
        4. defaultcontent-namespace-article-addendum.xml
          0.5 kB
        5. defaultcontent-namespace-foo.xml
          2 kB
        6. foo.xml
          0.4 kB
        7. log4j.log
          102 kB

        Activity

          People

            nvankampenhout Niels van Kampenhout
            nvankampenhout Niels van Kampenhout
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: