Legacy Knowledge Base
Published Sep. 10, 2025

Web Content is being approved after the expiry date

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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

Did this article resolve your issue ?

Legacy Knowledge Base