Expand my Community achievements bar.

SOLVED

dc:title is being overridden by jcr:title when any assets is uploaded

Avatar

Level 2

Whenever I upload any pdf from one AEM to another, I am seeing pdf:title is being overridden by jcr:title . It seems some WF gets triggered that's copy the jcr:title value to dc:title. Is it something expected?

Steps to reproduce:-
Build a package containing pdf assets from 1 AEM env.
Redeploy the same package to the same or another environment
You will notice dc:title value is changed and it holds the same value that jcr:title holds and mu original dc:title value is the lost

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

After adding value to dc:title property to a pdf file , if we run DAM Update Asset workflow on same pdf file  then we will seeing dc:title value has been copied into jcr:title property.

View solution in original post

3 Replies

Avatar

Employee Advisor

I have tried on AEM 6.5.12 -

 

1. I have uploaded Overview Telefónica.pdf under /content/dam/we-retail/en/products and added pdf:Title and dc:title in one AEM 6.5.12 [source instance] instance 

as shown below -

DEBAL_DAS_0-1659712766663.png

2. Then created a package with this file and uploaded and installed on another AEM 6.5.12 (target instance) and after installation I could see -

 

DEBAL_DAS_1-1659712924078.png

pdf:Title , dc:title and jcr:title in target AEM 6.5.12 instance . dc:title and jcr:title are having similar value.

 

Avatar

Correct answer by
Employee Advisor

After adding value to dc:title property to a pdf file , if we run DAM Update Asset workflow on same pdf file  then we will seeing dc:title value has been copied into jcr:title property.

Avatar

Community Advisor

Hi @learningguy,

Assuming you do not have some customization in your code that are connected to pdf asset processing. The behavior you have described is most likely related to the way how com.day.cq.dam.handler.standard.pdf.PdfHandler is implemented.

This can be easily checked by disabling PdfHandler component. Below is a link to the Media Handler documentation, it contains list of all OOTB media handlers, guide how to disable media handler and example of custom media handler implementation.

In case OOTB behavior is not what you expecting, you could try to keep PdfHandler disabled and/or create custom PdfHandler implementation aligned with requirements you have to fulfill.