Significance of dam:relativePath property

Shridhar_Rao

07-12-2017

I am trying to understand an issue related to dam:relativePath property.

What is the significance of dam:relativePath property, specifically with respect to the OOTB move operation of a dam asset?

What will be the impact, if dam:relativePath property is not updated/created, during the OOTB move operation of a dam asset?

I tried searching this, but couldn't find relevant answers.

Using AEM 6.2 version.

Regards,

Shridhar Rao

Accepted Solutions (1)

Accepted Solutions (1)

smacdonald2008

07-12-2017

This prop tracks the location of the Asset. Consider this asset:

DAM1.png

I moved this asset to this location: /content/dam/we-retail/en/people/womens

Now notice that this value reflects the new path:

DAM2.png

Answers (5)

Answers (5)

smacdonald2008

08-12-2017

Each time i have moved an asset - I see this prop is automatically modified by the system. So there should not be a situation where this prop is not updated when an asset is moved. Does that make sense?

Shridhar_Rao

08-12-2017

Here is my actual problem:

Current behavior:

In current scenario, move operation fails to update the references of the asset because the service user used by AEM internally to perform move operation(reference-adjustment-service), does not have modify permissions on /etc/xyz

Solution:

By giving modify permission to "reference-adjustment-service" user at /etc/xyz, the move operation successfully updates all the references.

This solution works, except for the fact that the dam:relativePath property is not created on moving the asset.

Shridhar_Rao

08-12-2017

Thanks a lot for your reply. Just a few additional questions.

Is there any impact if this property is not set for some asset after it is moved? What is this property used for, other than just tracking the path of the asset?