Message Boards
Asset Publisher Fragment Upgrade to DXP 7.2 Issues
Alejandro Roiz, modified 3 Years ago.
Asset Publisher Fragment Upgrade to DXP 7.2 Issues
New Member Posts: 3 Join Date: 3/19/20 Recent Posts
Hello Liferay CommunityForums!
Has anyone here have any experience with upgrading an Asset Publisher Web Fragment from DXP 7.0 to DXP 7.2? I’m running into issues with dependencies and non-documente changes in the API, at the moment more specifically im having trouble initializing the
7.0 Source code (https://github.com/liferay/liferay-portal/blob/6b14c8e0496926309a5fac347cb2d342d7412c1f/modules/apps/web-experience/asset/asset-publisher-web/src/main/java/com/liferay/asset/publisher/web/display/context/AssetPublisherDisplayContext.java#L100)
7.2 Source code (https://github.com/liferay/liferay-portal/blob/ded0e9390637985231e962e4ad4cfa4639eabb26/modules/apps/asset/asset-publisher-web/src/main/java/com/liferay/asset/publisher/web/internal/display/context/AssetPublisherDisplayContext.java#L125)
Has anyone here have any experience with upgrading an Asset Publisher Web Fragment from DXP 7.0 to DXP 7.2? I’m running into issues with dependencies and non-documente changes in the API, at the moment more specifically im having trouble initializing the
AssetPublisherDisplayContext
due to the massive change in parameters it underwent through.I am providing a link to the 7.0 and 7.2 source codes so you guys know to which specific class, constructor and change I’m referring to.7.0 Source code (https://github.com/liferay/liferay-portal/blob/6b14c8e0496926309a5fac347cb2d342d7412c1f/modules/apps/web-experience/asset/asset-publisher-web/src/main/java/com/liferay/asset/publisher/web/display/context/AssetPublisherDisplayContext.java#L100)
7.2 Source code (https://github.com/liferay/liferay-portal/blob/ded0e9390637985231e962e4ad4cfa4639eabb26/modules/apps/asset/asset-publisher-web/src/main/java/com/liferay/asset/publisher/web/internal/display/context/AssetPublisherDisplayContext.java#L125)
Alberto Chaparro, modified 3 Years ago.
RE: Asset Publisher Fragment Upgrade to DXP 7.2 Issues
Liferay Master Posts: 549 Join Date: 4/25/11 Recent Posts
Hi Alejandro,
I think this wasn't detected as a breaking change because it is part of the web module, not the API. Anyway, you are right and we should offer an easier path to upgrade this. Please check the following example to know how to upgrade your code:
https://github.com/liferay/liferay-portal/blob/ded0e9390637985231e962e4ad4cfa4639eabb26/modules/apps/asset/asset-publisher-web/src/main/java/com/liferay/asset/publisher/web/internal/portlet/action/AssetPublisherConfigurationAction.java#L143
Also, have you tried the Liferay Upgrade Planner, it probably resolves this kind of issues.
Let us know if you get to upgrade your code.
I think this wasn't detected as a breaking change because it is part of the web module, not the API. Anyway, you are right and we should offer an easier path to upgrade this. Please check the following example to know how to upgrade your code:
https://github.com/liferay/liferay-portal/blob/ded0e9390637985231e962e4ad4cfa4639eabb26/modules/apps/asset/asset-publisher-web/src/main/java/com/liferay/asset/publisher/web/internal/portlet/action/AssetPublisherConfigurationAction.java#L143
Also, have you tried the Liferay Upgrade Planner, it probably resolves this kind of issues.
Let us know if you get to upgrade your code.
Alejandro Roiz, modified 3 Years ago.
RE: Asset Publisher Fragment Upgrade to DXP 7.2 Issues
New Member Posts: 3 Join Date: 3/19/20 Recent Posts
Hey Alberto!
We have already executed the Liferay Upgrade planner, and sadly, it does not resolve this kind of issues. Afaik, the Liferay Upgrade planner only executed a task to eliminate the versioning number and to try and bring the new dependencies, with some issues itself.
At the end of the day we ended up using the Liferay Upgrade Planner until it functionality came to an end and started upgrading manually, when we found out this issue.
Thanks for the information provided, I'll comment again when we end up upgrading our module.
We have already executed the Liferay Upgrade planner, and sadly, it does not resolve this kind of issues. Afaik, the Liferay Upgrade planner only executed a task to eliminate the versioning number and to try and bring the new dependencies, with some issues itself.
At the end of the day we ended up using the Liferay Upgrade Planner until it functionality came to an end and started upgrading manually, when we found out this issue.
Thanks for the information provided, I'll comment again when we end up upgrading our module.