Issue
- When I try to import a Site with a page containing global navigation fragments, the import fails.
Reproduction Steps:
1. Set up DXP 7.4 with u50 + hotfix-1915-7413
2. Go to the Global Site --> Site Builder --> Navigation menus and add a navigation menu and add to it a URL element (http://www.google.com)
3. Go to Control Panel --> Sites --> Sites and create a blank site
4. On the Site, go to Design --> Fragments and add a fragment set then create a basic fragment and change its configuration by pasting the following:
{
"fieldSets": [
{
"label": "",
"fields": [
{
"name": "source",
"description": "",
"label": "Source",
"type": "navigationMenuSelector"
}
]
},
{
"configurationRole": "style",
"label": "",
"fields": [
{
"name": "hoveredItemColor",
"description": "",
"label": "Couleur de lélément survolé",
"type": "colorPicker"
},
{
"name": "selectedItemColor",
"description": "",
"label": "Couleur de lélément sélectionné",
"type": "colorPicker"
}
]
}
]
}
5. Go to Site Builder --> Pages and add a content (blank) page and add the created fragment to it, then click the fragment (it is so thin to be noticed) and change the "Pages Hierarchy" source by selecting the created navigation menu and then click on "Select this level", then publish the page.
6. Go to Publishing --> Export and export the Site and download the LAR.
7. Go to Publishing --> Import and import the LAR into the same site.
Expected Result: The import is successful with no issues.
Actual Result: The import fails with a UI error:
An unexpected error occurred with the publish process. Please check your portal and publishing configuration.
java.lang.UnsupportedOperationException
and the following error in the log like this:
ERROR [liferay/background_task-6][LoggerExportImportLifecycleListener:399] Staged model {class: com.liferay.fragment.model.FragmentEntryLink, groupId: 46128, uuid: 66e1c3a1-37bd-d9b5-ddf3-08edad199b6e} import failed com.liferay.exportimport.kernel.lar.PortletDataException: java.lang.UnsupportedOperationException
Environment
- Liferay DXP 7.4
Resolution
- The issue has been resolved by LPS-188466 on update 84. Please upgrade to u84 or request a hotfix.