Issue
-
Steps to reproduce:
1) Create new web content and configure the content on a page.
2) Click on publish to live and switch to the advanced publication, select the page and scroll down and uncheck the web content in the content section.
3) Click on Publish to remote live.
4) Go to the remote server and check the page the web content which was unchecked in the staging server is published.Expected Behavior: Unchecked web content at the time of publishing should not be published to Live.
Observed Behavior: Unchecked web content at the time of publishing is published to Live.
Environment
- Liferay 7.2 with DXP-5
Resolution
-
Publishing a page, all the portlets are published from it, this includes the Web Content Display placed in step 1.
-
Publish a Web Content Display, it will publish the Web Content it is showing.
-
Unchecking Web Content in the Content section of the Advanced Publication form does not mean no Web Contents will be published. It means that no new unreferenced Web Contents are published.
- Web Contents being published to live if they are referred by pages that are being published.
Additional Information
- Documentation explicitly mentions https://help.liferay.com/hc/en-us/articles/360028721592-Advanced-Publication-with-Staging#content content can and will be published even if they are unselected in the Content section.