Issue
-
When users enable workflow for web content, the expiration date feature is not working as expected.
Steps to reproduce:
1. Start the server
2. Apply 'Single Approver Workflow' for web content.
3. Navigate to Content & Data > Web Content > Create basic web content.
4. Now, scroll right side, under SCHEDULE, uncheck 'Never Expire', and provide time to expire this web content (For testing purposes, change check interval from 15 minutes to 1 minute in Instance Settings)
5. Observe that when the expiration time has passed, the web content status is shown as 'Pending' only, and the Never Expire checkbox is also enabled.
6. Now, if users approve this web content, its status will show as 'Approved' instead of 'Expired'.Observed Behavior: Web content does not expire when workflow is enabled. When a user approves the web content after the expiration date passes, the status shows as 'Approved' instead of 'Expired'.
Expected Behavior: Web content should expire when workflow is enabled.
Environment
- Liferay DXP 2024.Q2
Resolution
- This is the expected behavior. When a web content item expires, its status remains "Pending" if it has not yet been approved. If a user approves the content after the expiration date has passed, the status will be displayed as "Approved" instead of "Expired."
-
However, here is the use case that requires this feature:
- An author wants to publish content for a special occasion, setting the display date for two days and the expiration date accordingly. The content is then submitted for approval. If the reviewer misses the approval within the intended timeframe and approves it later (e.g., on the third day) it will be approved. So, in that case, since the responsibility is with the reviewer to check the details before taking action, there should be a way he can see all the details; without visibility of details, how will he take action?
- In such circumstances, the info icon would be useful, hence a feature request has already been submitted for the product: LPD-52185
Additional Information
- Requesting-a-New-Feature-or-Feature-Improvement
- Please submit a ticket for product support in case any assistance is required on this.