Uploaded image for project: 'PUBLIC - Liferay Social Office Community Edition'
  1. PUBLIC - Liferay Social Office Community Edition
  2. SOS-1469

Bookmarks upgrade to 2.0.3 will fail if some group in portal has no layoutSets

    Details

    • Portal Fix Version/s:
      6.2.0 CE GA1, 6.2.10 EE GA1

      Description

      Class so-hook -> com.liferay.so.hook.upgrade.v2_0_3.UpgradeBookmarks iterates over all groups in portal, immediately fetching either public or private layoutSet using:

      for (Group group : groups) {
      	LayoutSet layoutSet = LayoutSetLocalServiceUtil.getLayoutSet(
      		group.getGroupId(), group.hasPrivateLayouts());
      	...
      }
      

      If some group does not have any layoutSet (I assume empty group, with no public or private layouts may be like that), exception is raised:

      com.liferay.portal.NoSuchLayoutSetException: No LayoutSet exists with the key (groupId=12345, privateLayout=false) 
      

        Attachments

          Activity

            People

            Assignee:
            mandy.lee Mandy Lee (Inactive)
            Reporter:
            josef.sustacek Josef Šustáček
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 49 weeks, 2 days ago

                Packages

                Version Package
                3.X EE
                3.X CE
                3.1 EE