When exactly does jcr:lastModified get updated? | Community
Skip to main content
October 2, 2019
Solved

When exactly does jcr:lastModified get updated?

  • October 2, 2019
  • 1 reply
  • 2503 views

Hi,

if I am correct then modifying e.g. the title property of an asset via its properties dialog does not update the jcr:lastModified property. Is this correct?

What is required to have this updated automatically? Will adding mixin:lastModified help to achieve this? How do you even add such mixin to e.g. an uploaded jpeg asset?

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 praveenjain

Open Asset Properties panel, notice that other properties can be modified but not created date as its disabled.

Now this created date proprerty gets added when assets is created in AEM and remains as it forever.

Now check /libs/dam/gui/coral/components/admin/contentrenderer/base/init/assetBase.jsp

where assetLastModification value is set as created date. Means its degined in such a way that last modified and created date remains same. Hence it never gets updated when any property is modified also.

1 reply

praveenjainAccepted solution
October 2, 2019

Open Asset Properties panel, notice that other properties can be modified but not created date as its disabled.

Now this created date proprerty gets added when assets is created in AEM and remains as it forever.

Now check /libs/dam/gui/coral/components/admin/contentrenderer/base/init/assetBase.jsp

where assetLastModification value is set as created date. Means its degined in such a way that last modified and created date remains same. Hence it never gets updated when any property is modified also.