-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.4.X, Master
-
Fix Version/s: 7.4.3.17 CE GA17, Master
-
Labels:
- 7.4-known-issues
- LOL_test_not_needed_poshi
- liferay-ga10-ce-743
- liferay-ga11-ce-743
- liferay-ga12-ce-743
- liferay-ga13-ce-743-known-issue
- liferay-ga14-ce-743-known-issues
- liferay-ga15-ce-743-known-issues
- liferay-ga16-ce-743-known-issues
- liferay-ga5-ce-743
- liferay-ga6-ce-743
- liferay-ga7-ce-743
- liferay-ga8-ce-743
- liferay-ga9-ce-743
- liferay-u1-dxp-7413
- liferay-u2-dxp-7413
- usm-board-out
-
Fix Priority:4
-
Git Pull Request:
Steps to reproduce:
- Make sure the site-initializer/site-initializer-masterclass is deployed.
- Go to Virtual Instances > Add Virtual Instance
- Fill in all the fields
- Select Masterclass in the drop down to initialize the instance
- Wait until the instance is initialized
- Assert that no errors are shown in the logs
- Now create a new virtual instance with the same initializer, using the portal instances API:
curl -X 'POST' 'http://localhost:8080/o/headless-portal-instances/v1.0/portal-instances' -d $'{"domain": "insurance.com", "portalInstanceId": "masterclass", "siteInitializerKey": "com.liferay.site.initializer.masterclass", "virtualHost": "www.bootcamp.com"}' --header 'Content-Type: application/json' -u '[email protected]:test'
Expected behavior: Logs show no errors
Current behavior: Console show errors
Technical Details:
- When the fragments of the master pages are processed by the PortletFragmentEntryProcessor, the HTML of the widgets is obtain with portletFragmentRenderer.renderPortlet. This method obtains the httpServletResponse from the fragmentEntryProcessorContext.
- When creating a virtual instance in the UI, the response exists
- When creating a virtual instance with the headless API, the response is null. As a result, the master page is not processed, and the virtual instance default site (initialized with the site initializer) fails to render correctly.
- Is blocking
-
LPS-148448 LPS-146763 - Product QA | Test Automation Creation
-
- Closed
-
-
LPS-148472 LPS-142122 - Product QA | Test Automation Creation
-
- Closed
-
- is duplicated by
-
LPS-148569 Logo and Links are not displayed after Masterclass/Team Extranet virtual instance are created
- Closed
- is related to
-
LPS-153779 Poshi Automation for Bug LPS-141140 Site initializer fails to process fragments in pages when virtual instance is created with Portal Instance API
-
- Open
-
- relates
-
LPS-140302 Create Virtual instance using the Virtual Instance Initializer not works with the curl command.
- Closed
-
LPS-148458 LPS-141140 - Product QA | Test Automation Creation
-
- Closed
-