AEM 6.5 | Remove unwanted properties | Community
Skip to main content
Level 3
October 31, 2022
Solved

AEM 6.5 | Remove unwanted properties

  • October 31, 2022
  • 2 replies
  • 2592 views

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

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 Chandra_Hire

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.

2 replies

arunpatidar
Community Advisor
Community Advisor
October 31, 2022

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.

 

Arun Patidar
MukeshAEMAuthor
Level 3
October 31, 2022

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.

Chandra_Hire
Level 4
October 31, 2022

Please check if replication queue is blocked, if it is please clear it 

Jagadeesh_Prakash
Community Advisor
Community Advisor
October 31, 2022

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

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/groovy-console-in-aem-as-a-cloud/td-p/402675

 

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).