View as published returns 404 for unpublished pages in AEM
In AEMaaCS, using the View as Published feature for pages that are not currently published shows a 404 error when the page has an offTime set in the past. AEM treats the page as invalid based on its configured onTime and offTime properties, which causes the request to fail when wcmmode=disabled is used. To fix this issue, remove or update the offTime so the page remains valid.
Description description
Environment
- Product: Adobe Experience Manager as a Cloud Service (AEMaaCS) – Sites
- Constraints: Applies to pages with
onTimeandoffTimeproperties set on Author
Issue/Symptoms
- Viewing an unpublished page as published in AEM Author using
wcmmode=disabledreturns a 404 error. - The issue occurs when the page’s
offTimeproperty is set to a past date or time.
Resolution resolution
To fix this issue, follow these steps:
- Identify the pages in AEM Author that return a 404 error when viewed as published.
- Open the page properties for each affected page.
- Locate the
offTimeproperty. - Remove the
offTimevalue or update it so it is not set to a past date or time. - Save and close the properties dialog.
- Use View as Published again for the same page.
- Confirm that the page now loads correctly without returning a 404 error.
Notes:
- This behavior is expected when
wcmmode=disabledis used because AEM evaluates page validity based ononTimeandoffTime. - Dispatcher configuration does not affect this behavior in Author environments.
3d58f420-19b5-47a0-a122-5c9dab55ec7f