Expand my Community achievements bar.

SOLVED

Significance of dam:relativePath property

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

6 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 10

As you saw - this prop is updated when you move the asset to another location.

Avatar

Level 1

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?

Avatar

Level 10

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?

Avatar

Level 1

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.

Avatar

Level 10

When you move as an admin - you see this prop updated right - but not as a user that has the correct permissions?