Uploaded image for project: 'Magnolia Data Module (closed)'
  1. Magnolia Data Module (closed)
  2. MGNLDATA-192

Automatic activation of imported items fails with "Parent content /categorization/34 is not yet activated ..."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.7.7, 2.1
    • 1.7.6
    • None

      If you activate the feature of automatic activation after an data import, the following error message could occur:

      Error while deactivating all data of type dataBase. info.magnolia.cms.exchange.ExchangeException: 1 error detected: 
      Message received from subscriber: Parent content /categorization/34 is not yet activated or you do not have write access to it. Please activate the parent content before activating children and ensure you have appropriate rights on public
      

      The reason is, that the Set of the imported node uuids is not sorted. So the DataActivateAllCommand tries to activate the childs before its parents. The super class contains an node sorting method, but this one will be never reached. See the execute method of BaseDataAllCommand.

        Acceptance criteria

              jsimak Jaroslav Simak
              frank.sommer Frank Sommer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: