Image references are not being updated in PROD author environment when images are moved to another folder. | Community
Skip to main content
Praveen_Kasaraj
Level 2
February 21, 2020

Image references are not being updated in PROD author environment when images are moved to another folder.

  • February 21, 2020
  • 3 replies
  • 5366 views

Our Analysis:

  1. We are unable to reproduce this behavior in lower environments, issue appears only in PROD author server.
  2. 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) ]

  1. 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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

arunpatidar
Community Advisor
Community Advisor
February 21, 2020

Can you check error logs and events, could be a permission issue.

Arun Patidar
Praveen_Kasaraj
Level 2
February 24, 2020
I did check the error logs and pasted the log in Description. I tried with admin user as well so I confirmed that this is not permission issue.
joerghoh
Adobe Employee
Adobe Employee
February 21, 2020

How are you moving the assets? What API are you using?

Praveen_Kasaraj
Level 2
February 24, 2020
I am moving the assets from "http://localhost:4502/assets.html/content/dam". Forgot to mention, We are using AEM 6.4 and Service Pack 6.4.6
joerghoh
Adobe Employee
Adobe Employee
February 29, 2020

How do you move the assets? I just tried to reproduce your issue on AEM 6.4, and I cannot. I moved the asset using the AEM Assets UI ("move" function).

Can you specific how you move the assets?

Praveen_Kasaraj
Level 2
July 3, 2020

Apologies for my late response,

We moved asset from AEM Assets UI using move function, as i mentioned in the issue description this issue happens only in Prod author. 

We did raise a Day Care ticket and shared logs, config dumps many times but they have not found the root cause nor explain the flow to us. I do not understand why they take so much time for this one, usually they resolve things quick.

Regards,
Praveen Kasaraju