Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26822

ezpm.php: only the main location is included in the generated packages

    XMLWordPrintable

    Details

      Description

      When using the ezpm.php script, for contents with multiple locations, only the main location will be exported. For example, if there is an article with 2 locations, only the main location will be included in the package that is generated via that script.

      Steps to reproduce:

      1. Prepare two test installations, one where the test package will be generated, and the other where the resulting package will be imported and installed;
      2. Apply the fixes from these public issues to both installations:

      https://jira.ez.no/browse/EZP-23299
      https://jira.ez.no/browse/EZP-24333

      Both fixes are included as attachments in this public issue.

      3. Create this content structure in installation 1:

      Home
      	Main Tests Folder (location_id 120)
      		Tests Folder 1
      			Article 1 (main location)
      		Tests Folder 2
      			Article 1 (location 2)
      

      4. Create and export a package containing the above content structure using ezpm.php, also in installation 1:

      php ezpublish/console --env=prod ezpublish:legacy:script ezpm.php create test_package "Test Package Creation"
      php ezpublish/console --env=prod ezpublish:legacy:script ezpm.php add test_package ezcontentobject --exclude-templates --exclude-classes --all-versions --siteaccess=eng 120
      php ezpublish/console --env=prod ezpublish:legacy:script ezpm.php export test_package --output -d /my/installation/folder/
      

      Adjust the supplied location_id and installation folder to reflect your own test environment.

      5. Import the package into installation 2:

      php ezpublish/console --env=prod ezpublish:legacy:script ezpm.php --debug import /my/installation/folder/test_package-1.0-1.ezpkg
      php ezpublish/console --env=prod ezpublish:legacy:script ezpm.php --debug install test_package
      

      6. On the admin interface of installation 2, go to the content structure section and check the results. "Article 1" is only located under "Tests Folder 1", it should also be located under "Tests Folder 2".

      Ref: https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Scripts/Miscellaneous/ezpm.php2

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: