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

After upgrading from 6.2 --> 7.0+ DDM structures break

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 6.2.X EE, 7.0.0 DXP GA1, 7.1.10 DXP GA1, 7.2.10 DXP GA1, 7.3.10 DXP GA1, Master
    • Fix Version/s: None
    • Labels:
      None

      Description

      Reproduction Steps:

      1. Set up a vanilla 6.2 with the latest fix pack and start it.
      2. Go to Contents --> Manage --> Structures and add a structure with one of the following fields (or add all these fields):

      • Documents and Media
      • Link to Page
      • Image

      Note: After adding the field go to the "Source" tab where you can see the code and while there Save the structure. See the attached video: savestrsource.mp4

      3. Create a template for the structure.
      4. Shut down the portal.
      5. Set up a vanilla DXP 7.1, DXP 7.2, DXP 7.3, or Master and upgrade the previous portal to one of these instances.
      6. Start the upgraded instance
      7. Go to Content and Data --> Web Content --> and try to create web content from one of the structures.

      Actual Result: The web content is greyed out and cannot be created, and JSON error appears. I am attaching a video illustration: structureupgradeissue.mp4

      Note: If you look at the structure (I used a Documents and Media structure), you will see that there are extra whitespaces between " " at the label, predefinedValue and tip:

      {
                  "label": {
                      "en_US": " Documents and Media "
                  },
                  "predefinedValue": {
                      "en_US": "  "
                  },
                  "style": {
                      "en_US": ""
                  },
                  "tip": {
                      "en_US": "  "
      

      Expected Result: The structure should remain intact as before the upgrade and creating web content should be successful.

      As a workaround, before upgrading and while making the structure, if you save it from the "View" tab, after the upgrade it will be fine and web contents are created successfully. See the attached video: savestrview.mp4

      Furthermore: I tested the case by upgrading to DXP 7.0 fix pack de-94 and the structures broke with the extra whitespaces. However, it was possible to create web content from these broken structures. See the attached video: brokenstrtest70.mp4

      master @ 0b197df59d70576cdf03f05525c7a49caf76d8e1
      DXP 7.1 with fix pack 19
      DXP 7.2 with the latest fix pack 8
      DXP 7.3

      Note: On DXP 7.0 the structure is broken but it can be used to create web content successfully.

        Attachments

        1. brokenstrtest70.mp4
          5.40 MB
        2. savestrsource.mp4
          13.07 MB
        3. savestrview.mp4
          3.82 MB
        4. structureupgradeissue.mp4
          2.13 MB

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            ahmed.abdin Ahmed Abdin
            Participants of an Issue:
            Recent user:
            Ahmed Abdin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              17 weeks, 5 days ago

                Packages

                Version Package