Asset Expiration is Deactivating the Asset | Community
Skip to main content
Level 2
January 5, 2021
Solved

Asset Expiration is Deactivating the Asset

  • January 5, 2021
  • 2 replies
  • 1375 views

Hello,

The Assets are being deactivated when expiration date of an asset is reached. This is causing a problem where some of the pages leads to 404's. Is there a way like customizing OOTB ExpiryNotificationImpl removing the deactivate step so that asset don't get unpublished when expiration date is reached?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunal_Gaba_

No you can not configure it to disable the replication. The best solution in this case is to write custom expiry job and disable the out of the box expiry job. 

One hack is to disable replicate permission of "dynamic-media-replication" user but again it is not recommended as it is an anti pattern to update system users which come out of the box from AEM code. 

2 replies

Kunal_Gaba_
Kunal_Gaba_Accepted solution
January 5, 2021

No you can not configure it to disable the replication. The best solution in this case is to write custom expiry job and disable the out of the box expiry job. 

One hack is to disable replicate permission of "dynamic-media-replication" user but again it is not recommended as it is an anti pattern to update system users which come out of the box from AEM code. 

HeenaMadan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 12, 2022

No there is no OOTB option to disable or the deactivate step. As per offical doc

You need to write custom job to disable OOTB expiry job.

Thanks