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

Parent folder cannot be restricted to different structure than child folder's if latter has contents

    Details

      Description

      Reproducing Steps

      Case 1

      1. Create two structures; call them str01 and str02.
      2. Add a Journal folder, call it folder01.
      3. Add a Journal folder, call it folder02, as a subfolder of folder01.
      4. Edit folder02 and restrict its allowed structures to just str02.
      5. Add a new web content based on str02, call it str02wc. (I couldn't create it based on str01 anyway.)
      6. Edit folder01 and restrict its allowed structures to just str01. Save.
        Expected: The configuration can be saved, because although there's a content of a different structure (str02wc) in a subfolder, that subfolder has explicitly specified that the structure is allowed.
        Observed: The configuration cannot be saved due to the presence of str02wc in folder02. The following visual error message is shown

        Error: You cannot apply the selected structure restrictions for this folder. At least one web content references another structure.

      Case 2

      1. Create two structures; call them str01 and str02.
      2. Add a Journal folder, call it folder01.
      3. Edit folder01 and restrict its allowed structures to just str01.
      4. Add a Journal folder, call it folder02, as a subfolder of folder01.
      5. Edit folder02 and restrict its allowed structures to just str02.
      6. Add a new web content based on str02, call it str02wc. (I couldn't create it based on str01 anyway.)
        Observed: The web content can be saved successfully even though now we have a web content based on str02 in a subfolder of folder01, which only allows str01.
      7.  Edit folder01 to, say, add a description and try to save:
        Expected: The configuration can be saved,
        Observed: Same error as in Case 1, due to the presence of str02wc in folder02

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            ricardo.couso Ricardo Couso
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Ricardo Couso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.1 CE GA2
                7.3.2 CE GA3
                7.3.10 DXP GA1
                Master