-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE, 7.0.0 DXP FP11, 7.0.0 DXP SP2, Master
-
Fix Version/s: 7.0.0 DXP FP14, 7.0.0 DXP SP3, 7.0.3 CE GA4, 7.0.X EE, 7.1.X, Master
-
Component/s: Staging, Staging > Export/Import
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:4
-
Git Pull Request:
Summary
Liferay's portlet configuration export functionality allows for an Export Permissions toggle. The problem is that when we configure a portlet's permissions, export the portlet configuration with Export Permissions toggled to YES, when we import the LAR file into a new site, the permissions from the original portlet are not transferred.
Steps to Reproduce
- Start up a new Liferay environment
- Sign in as test@liferay.com
- On the top of the Welcome page, locate the Search portlet, and click on the hamburger menu > Go into Permissions
- In the Permissions panel, grant View permissions for all of the OOTB roles, then Save.
- Back in the Search portlet's hamburger menu > click on Export / Import
- Ensure that under Application "Configuration" is selected, and under "Permissions" Export Permissions is set to YES
- Export
- Save the LAR file
- Create a new Site (Control Panel > Sites > Sites >
Add Blank site)
- Add a new public page to the newly created site, then go to the newly created public page
- Identify the Search portlet on the new page in the top right hand corner > Hamburger icon > Export / Import
- Click on the Import tab
- Drop in the LAR file saved from the old site, wait until it finishes uploading, then click Continue > Using the default settings but under "Permissions" set "Import Permissions" to YES > click Import
- After the import completes, click on the hamburger icon > Permissions and check to see if all of the roles' view permissions have been preserved from the import
Actual Result
Even though the portlet data export was configured to export permissions, the default permissions are set on the new site's portlet. This means that the permissions were not properly exported or imported.
Expected Result
The permissions on the new site's portlet should reflect the previous site's portlet permissions.
Reproduced In
DXP + DE-11
ee-7.0.x 183bf74a64660f168a8347c69bde4557c2b73563
master a5b0c2624babe0033ad4fb03961d576b0b1ef684
- is duplicated by
-
LPS-70846 Portlet permissions not exported to LAR
- Closed