jcr:lastModifiedBy and jcr:lastModified is not getting updated on the original/jcr:content node whenever we update the json file | Community
Skip to main content
Level 2
February 5, 2025
Solved

jcr:lastModifiedBy and jcr:lastModified is not getting updated on the original/jcr:content node whenever we update the json file

  • February 5, 2025
  • 1 reply
  • 558 views

Hi,

jcr:lastModifiedBy and jcr:lastModified is not getting updated on the original/jcr:content node whenever we update the json file of DAM Asset.

 

I checked all the permissions also JCR Observation Listeners are correctly configured, Verfied Resource Type, Getting the correct user id from session, also verified mixinType of the node and i dont see any issue. Still these two properties are not getting updated please help me on the same.

 

Thanks & Regards,

Kalyan

Best answer by chaudharynick

Hi @kalyan_chakravarthych 

 

Please use AssetManager API instead of directly targeting the original/jcr:content of the Asset

You can use createOrUpdateAsset method to update the JSON file in the rendition folder.

1 reply

chaudharynick
chaudharynickAccepted solution
Level 4
February 6, 2025

Hi @kalyan_chakravarthych 

 

Please use AssetManager API instead of directly targeting the original/jcr:content of the Asset

You can use createOrUpdateAsset method to update the JSON file in the rendition folder.