Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-66882

Import process fails when LAR references a DDM structure that has a default locale that is no longer enabled

    Details

      Description

      Description
      Import process fails when LAR references a structure that contains a default locale that is not enabled, even if the structure already exists in the database with the disabled locale.

      Steps to reproduce
      1) Initialize a bundle on a fresh database with en_US as the default locale.
      2) After the first startup completes, shut down the server.
      3) Place these properties in the portal-ext.properties:
      locales.enabled = en_GB,fr_CA
      4) Start the server.
      5) Go to Control Panel > Configuration > Instance Settings and change Default Language to en_GB
      6) Navigate to Site Administration and choose Global as the site context.
      7) Create a document of type contract.
      8) Export the LAR.
      9) Try to import the LAR from step 7.

      Expected results: The LAR would be imported successfully.
      Actual results: A StructureNameException occurs, and the LAR import fails.

      Reproduced in master: df34b59b4b938a562bab31bf28281b747a40c4a3
      Reproduced in 6.2.x: 1ab4e0a4c86edd072d28b8dd702d02c98687eba2

        Attachments

        1. import_DM_7.0.x.png
          import_DM_7.0.x.png
          62 kB
        2. import_DM_master.png
          import_DM_master.png
          57 kB
        3. reproduced 7.0.x 7.1.x.png
          reproduced 7.0.x 7.1.x.png
          44 kB
        4. reproduced master.png
          reproduced master.png
          68 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  41 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP80
                  7.0.10.11 DXP SP11
                  7.0.X
                  7.1.10 DXP FP9
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master