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

When default structure's web content exists unclean field which doesn't belong to this structure and its parentStructure, DDMStructureImpl.hasFiled() will enter endless loop.

    Details

      Description

      The issue only occurs in ee-6.2.x. On master, LPS-48328 rewirte the logic so that it can avoid the issue. Due to the issue occurs unclean data, but out logic doesn't throw one exception to skip this and our logic also considers the case, so it needs to be fixed.

      The case is the following:
      1.Go to Liferay->Site Administration->Web Content->Manage->Structures, create one ParentStructure "parent", add text field for it.
      2. Create another childStructure "child" and select its parentStructure "parent", add Separator field for it.
      3. Add one template and connect with "child" structure.
      4.Go to Liferay->Site Administration->Web Content->Manage->Structures,
      click "Edit default values" on "child", and then save this Structure default values(it is one journalArticle data).
      At this time, its content fields will include:
      <dynamic-element name="Separator" type="selection_break" index-type="keyword" index="0" instance-id="ryac"/>
      <dynamic-element name="Text" type="text" index-type="keyword" index="0" instance-id="vgha">
      <dynamic-content language-id="en_US"><![CDATA[haha]]></dynamic-content>
      </dynamic-element>

      Assumption: its content includes one addition field <dynamic-element name="news_bar1" index="0" type="selection_break" index-type=""/>. This is unclean data.

      5. Add one web content based on "child" structure, the page will be still loading.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.jin Mark Jin (Inactive)
              Reporter:
              hai.yu Hai Yu
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 33 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE