Image references are not being updated in PROD author environment when images are moved to another folder.
Our Analysis:
- We are unable to reproduce this behavior in lower environments, issue appears only in PROD author server.
- Found this message in log files,
[21.02.2020 05:05:56.509 *INFO* [sling-threadpool-6e70e685-52bc-4c90-ab9c-f0d260e37cfb-(apache-sling-job-thread-pool)-3-<main queue>(com/adobe/cq/dam/assetmove)] com.day.cq.dam.core.impl.AssetMoveEventHandler AssetMoveEventHandler: Ignoring reference adjustment(moveFromPageManager=true) ]
- We verified “AssetMoveEventHandler.java” file and found below logic. If moveFromPageManager is false then it will update the references else it won’t.
Object userDataProp = job.getProperty(AssetMoveListener.USER_DATA_PROP);
boolean moveFromPageManager = false;
if (userDataProp != null) {
moveFromPageManager = ((String)userDataProp).equalsIgnoreCase("changedByPageManagerMove");
}
if (!moveFromPageManager) {
this.updateAssetPath(resolver, session, path, eventType, assetNewPath, (String)job.getProperty("node_type"));
this.updateSwatchPath(resolver, session, path, eventType, assetNewPath);
} else {
logger.info("AssetMoveEventHandler: Ignoring reference adjustment(moveFromPageManager={})", moveFromPageManager);
}
Could you please investigate and let us know the solution?