Duplicate Asset Detection in AEM
Enabling Duplicate Detection
If you attempt to upload an asset that exists in Adobe Experience Manager (AEM) Assets, the duplicate detection feature identifies it as duplicate. Duplicate detection is disabled by default. To enable the feature, do the following steps:
- Open the Adobe Experience Manager Web Console Configuration page at https://[server]:[port]/system/console/configMgr.
- Edit the configuration for the servlet Day CQ DAM Create Asset.
- Select the detect duplicate option, and click/tap Save.
The detect duplicate feature is now enabled in AEM Assets. When a user attempts to upload an asset that exists in AEM, the system checks for conflict and indicates it. The assets are identified using SHA-1 hash stored at jcr:content/metadata/dam:sha1, which means duplicate assets are detected irrespective of the filenames.
By duplicate in this context means, exact copy of the asset. For example if you are trying to upload xyz image and the same image already exist in the dam may be with different name or in different location, Then this feature gets you the list of such duplicate images in the dam. This is possible because each asset is associated with unique SHA1-hash, this is correspondent to dam:sha1 property as shown below. If two assets are same, then they both share same dam:sha1 value.
Below is the Dialog you see if there are any duplicate assets. As you can see I already have abc.jpg in "/content/dam/test" location and I am trying upload same image with different name in the same folder.
As I said earlier, this feature even helps you to detect duplicate assets present in different location. As shown in below picture, here I am again trying to upload same image with different name but in different folder.
Work around for you guys:
Try modifying the content of the asset. Crop it for image or change data for text or similar type.




Comments
Post a Comment