Expand my Community achievements bar.

SOLVED

Asset Expiration is Deactivating the Asset

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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. 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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. 

Avatar

Community Advisor

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

HeenaMadan_0-1657630961252.png

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

Thanks