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

Document type selection of Asset Publisher configuration is lost in the export / import process

Details

    Description

      According to a customer, this issue was already there in Liferay 6.2.

      Steps to reproduce:

      1. In the Global site, create 3 document types (I've called them TYPE_A, TYPE_B and TYPE_C)
      2. Create a new site, let's call it Alpha
      3. In Alpha, create 3 documents using the 3 types we have created.
      4. In Alpha, create a new content page and add the Asset Publisher Widget
      5. Configure the Asset Publisher Widget:
        • Asset Selection: Dynamic
        • Source - Asset Type: Document
        • Source - Document Type: Select More Than One...
        • Source - Selected: TYPE_A and TYPE_B (we don't include TYPE_C)
      1. The Asset Publisher displays 2 out of the 3 documents we have created, this is expected.
      2. On the Alpha site, go to Publishing - Export and make a complete export of the site.
      3. Create a new site, let's call it Beta
      4. On the Beta site, go to Publishing - Import and import the Alpha exported lar

      Expected result:

      The Beta site page displays the 2 filtered documents.

      The configuration of the Asset Publisher on the Beta page is the same as on Alpha.

      Actual result:

      The Beta site page displays the 2 filtered documents (the one of TYPE_C is not displayed, as expected).

      However, if you go to the Asset Publisher configuration, it's wrong because you have;

      • Asset Selection: Dynamic
      • Source - Asset Type: Document
      • Source - Document Type: Any

      The filter on document type TYPE_A and TYPE_B is lost.

      Consequences of the issue:

      Let's imagine that someone goes to the Asset Publisher configuration in order to change something completely unrelated to asset selection rules (for example, they wish to change the freemarker template), they will unexpectedly change the asset selection rule.

      Attachments

        Issue Links

          Activity

            People

              support-lep@liferay.com SE Support
              fabian.bouche Fabian Bouché
              Rafaela Nascimento Rafaela Nascimento
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                21 weeks, 1 day ago

                Packages

                  Version Package
                  7.4.13 DXP U63
                  Master