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

Avatar

Avatar

Praveen_Kasaraj

Avatar

Praveen_Kasaraj

Praveen_Kasaraj

21-02-2020

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?

Replies

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

884

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

884
Arun_Patidar
MVP

21-02-2020

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

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K
Jörg_Hoh
Employee

21-02-2020

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

Avatar

Avatar

Praveen_Kasaraj

Avatar

Praveen_Kasaraj

Praveen_Kasaraj

23-02-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

Avatar

Avatar

Praveen_Kasaraj

Avatar

Praveen_Kasaraj

Praveen_Kasaraj

23-02-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.

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K
Jörg_Hoh
Employee

29-02-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?

Avatar

Avatar

Praveen_Kasaraj

Avatar

Praveen_Kasaraj

Praveen_Kasaraj

03-07-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