Hi Everyone,
I could see a few unwanted properties like cq:lastModified, cq:lastReplicated, cq:lastReplicatedBy automatically added for every node. I tried deleting it manually for my website Content Fragment models but after changing anything it got added again. Is there any setting using which I can stop adding these properties every time?
Thanks.
Mukesh
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @MukeshAEM
That's great, now cq:lastReplicated, cq:lastReplicatedBy properties has been stopped getting added automatically.
For cq:lastModified, just to double check can you please validate if no event is getting triggered from project bundle (which is adding these properties) by stopping project bundle as suggested by @arunpatidar
However, I have verified in vanilla instance that cq:lastModified added only to jcr:content node of content fragment models and not its parent nodes.
Also, please check if any customized workflow adding this property e.g., DAM Set modified date workflow OOTB adds such property but on specific DAM path.
Hi,
I think you have an Event listener which adding this properties on modification. Please disable your bundle and check again if properties are added or not. If not that means you have custom logic to do that.
Also try in vanilla instance.
Thanks for your prompt response. We don't have any custom event handler written in the project. I'm thinking it's an OOTB feature of AEM 6.5 or might be configured somewhere to add these properties.
Please check if replication queue is blocked, if it is please clear it
Hi @Chandra_Hire, replication queue was indeed blocked and I believe this was the reason why AEM was adding replication properties. Now the main question is what can I do to stop AEM from adding properties cq:lastModified and cq:lastModifiedBy? It got added after any change in a content fragment model.
Hi @MukeshAEM
That's great, now cq:lastReplicated, cq:lastReplicatedBy properties has been stopped getting added automatically.
For cq:lastModified, just to double check can you please validate if no event is getting triggered from project bundle (which is adding these properties) by stopping project bundle as suggested by @arunpatidar
However, I have verified in vanilla instance that cq:lastModified added only to jcr:content node of content fragment models and not its parent nodes.
Also, please check if any customized workflow adding this property e.g., DAM Set modified date workflow OOTB adds such property but on specific DAM path.
Hi @MukeshAEM
To remove the above properties from all the pages or assets. The groovy console can be used to remove property in bulk.
https://github.com/CID15/aem-groovy-console
But that is not allowed. It’s considered a security risk to inject code at runtime that is not validated by CM
You can write Java servlets that trigger async jobs (pure servlets time out after 1min).
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies