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.
This prop tracks the location of the Asset. Consider this asset:
I moved this asset to this location: /content/dam/we-retail/en/people/womens
Now notice that this value reflects the new path:
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?
As you saw - this prop is updated when you move the asset to another location.
When you move as an admin - you see this prop updated right - but not as a user that has the correct permissions?
Here is my actual problem:
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
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.
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?