Issue
The content pages are marked as Draft without any user interaction
Steps to Reproduce:
-
Add a new content page
-
Add an asset publisher widget to the page
-
Configure the Asset Publisher with the following
Asset Selection > Source
Asset Type > Web Content Article
Web Content Article Structures > Basic Web Content
Display Settings > Sent And Enable
Subscribe -
Save Asset Publisher configuration and publish page. Verify page is published and not in "Draft" status. Publish a new Basic Web Content
-
Either wait for the allotted time in the System Settings > Assets > System Scope > Asset Publisher > Check Interval property, or execute the following groovy script which changes the scheduler to fire every 1 minute:
import com.liferay.portal.kernel.scheduler.SchedulerEngineHelperUtil;
import com.liferay.portal.kernel.scheduler.SchedulerEngineHelperUtil;
import com.liferay.portal.kernel.scheduler.StorageType;
import com.liferay.portal.kernel.scheduler.TimeUnit;
import com.liferay.portal.kernel.scheduler.Trigger;
import com.liferay.portal.kernel.scheduler.TriggerFactoryUtil;
String className = "com.liferay.asset.publisher.web.internal.messaging.CheckAssetEntryMessageListener";
Trigger trigger = TriggerFactoryUtil.createTrigger(className, className, null, null, 1, TimeUnit.MINUTE);
SchedulerEngineHelperUtil.update(trigger, StorageType.MEMORY); -
View the page in the Site Builder menu.
Actual result: Page now has a "Draft" icon next to it.
Expected result: Page stays in the published state.
Environment
- Liferay DXP 7.2, 7.3
Resolution
- The observed behavior is a known issue LPS-130746 and will be fixed in dxp-14-7210 for DXP 7.2 and dxp-2-7310 for DXP 7.3.