-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.4.3.6 CE GA6, 7.4.13 DXP U2, 7.4.3.7 CE GA7, 7.4.13 DXP U3, Master
-
Component/s: Liferay Online Site Initializer
-
Fix Priority:4
-
Git Pull Request:
Requirement:
- Create a DXP bundle
- Configure to use the MySQL database
- Add the Liferay Online property
https://liferay.atlassian.net/wiki/spaces/ENGDXPONLINE/pages/1888452877/Run+DXP+with+Liferay+Online+configurations+locally
Step-by-Step:
- Check if the Liferay DXP is up. (you can login for example)
- On the terminal, execute the curl command to create the Virtual Instances with Initializers
curl -X 'POST' 'http://localhost:8080/o/headless-portal-instances/v1.0/portal-instances' -d $'{"domain": "masterclass.com", "portalInstanceId": "masterclass", "siteInitializerKey": "com.liferay.site.initializer.masterclass", "virtualHost": "www.masterclass.com"}' --header 'Content-Type: application/json' --header 'X-Liferay-Transaction-Disabled:true' -u '[email protected]:test' curl -X 'POST' 'http://localhost:8080/o/headless-portal-instances/v1.0/portal-instances' -d $'{"domain": "team-extranet.com", "portalInstanceId": "teamextranet", "siteInitializerKey": "com.liferay.site.initializer.team.extranet", "virtualHost": "www.team-extranet.com"}' --header 'Content-Type: application/json' --header 'X-Liferay-Transaction-Disabled:true' -u '[email protected]:test' curl -X 'POST' 'http://localhost:8080/o/headless-portal-instances/v1.0/portal-instances' -d $'{"domain": "raylife.com", "portalInstanceId": "raylife", "siteInitializerKey": "com.liferay.site.initializer.raylife", "virtualHost": "www.raylife.com"}' --header 'Content-Type: application/json' --header 'X-Liferay-Transaction-Disabled:true' -u '[email protected]:test' curl -X 'POST' 'http://localhost:8080/o/headless-portal-instances/v1.0/portal-instances' -d $'{"domain": "speedwell.com", "portalInstanceId": "speedwell", "siteInitializerKey": "speedwell-initializer", "virtualHost": "www.speedwell.com"}' --header 'Content-Type: application/json' --header 'X-Liferay-Transaction-Disabled:true' -u '[email protected]:test' curl -X 'POST' 'http://localhost:8080/o/headless-portal-instances/v1.0/portal-instances' -d $'{"domain": "minium.com", "portalInstanceId": "minium", "siteInitializerKey": "minium-initializer", "virtualHost": "minium"}' --header 'Content-Type: application/json' --header 'X-Liferay-Transaction-Disabled:true' -u '[email protected]:test'
Actual result:
The exception appears on Liferay log, and the user can not create the Virtual instance
Expected:
The user can create the Virtual instance.
Environment:
- master (Liferay DXP)
- Localhost
- MySQL database
- Commit: 59bcc8518e827673421d4d4944d9706421d06c70
Evidence:
insurance log(no longer applies)- raylife log(same as for bootcamp)
- speedwell log
- minium log
UPDATE:
- When testing Raylife, be aware of LPS-144390. If this issue is not solved, then the virtual instance initialization (either through UI or API) will fail.
- The new header 'X-Liferay-Transaction-Disabled:true' must be included in the request, in order to execute the portal instance creation in the right order. See
LPS-141137. - Include the new site initializer 'Team extranet' in the tests. See LPS-141961
- is related to
-
LPS-137739 Cannot load virtual instances created with a virtual instance initializer
- Closed
-
LPS-139959 Create a Virtual Instance with the initializers present an error when try to create it by the UI
- Closed
-
LPS-141140 Site initializer fails to process fragments in pages when virtual instance is created with Portal Instance API
- Closed
-
LPS-141137 Align Portal Instances API behavior with UI
- Closed
-
LPS-135077 As a System Admin, I can select an initializer when creating a new Virtual Instance
-
- Closed
-
-
LPS-146348 To Create missing automation for bugs in Liferay Online
-
- Closed
-