Hi All,
Basis what parameters AEM identify whether assets is duplicate or not. I have been able to analyse till below, but this does not give me exact parameters like if its assets size or Name or Metadata ?
How to enable duplicate check:
Go to the Adobe Experience Manager Web Console Configuration page at the following URL:
http://<server>:<port>/system/console/configMgr
CreateAssetServlet will be invoked on save.
How Sha1 is calculated:
Rendition original = asset.getOriginal();
Note: Asset rendition will be unique for each asset.
is = original.getStream();
sha1 = DigestUtils.shaHex(is);
How duplicate assets are identified:
String queryString = "//element(*, dam:Asset)[(jcr:content/metadata/@dam:sha1 = '" + sha1 + "')]";
if (((String) ((List) duplicateAssets).get(i)).equals(asset.getPath())) {
((List) duplicateAssets).remove(i);
break;
}
your help in this regard would be highly appreciated.
Regards,
Vinod
Views
Replies
Total Likes
Thanks for this.
But this does not answer my question on how dam:sha1 value is being achieved and what are the parameters being used to create this, when I upload a file in to AEM DAM.
Regards,
Vinod
Views
Replies
Total Likes
You have identified the logic behind the functionality (I cannot say if correct or not). But I don't get your question, sorry.
Jörg
Views
Replies
Total Likes
Hi Jorg,
My question is very specific.
1. How dam:sha1 being created.
2. What are the parameters being used to create dam:sha1
This will help in determining the parameter used for deciding if asset is duplicate or not.
Regards,
Vinod
Views
Replies
Total Likes
This is not documented, thus I don't have this information available. If you want to have this implementation specific information disclosed, you should approach the Adobe support and ask them for this.
(And I still don't get the reason why you need to do this on your own instead of relying solely on the product feature.)
Views
Replies
Total Likes
Thanks for the reply Jörg,
This is a question from business. So that they know basis which criteria/attributes duplicate assets being decided. Concern is that assets should not be declared duplicate unnecessarily. This should basis business requirement.
I hope the logic behind DAM:SHA1 creation is something that can be disclosed..
I will raise a support ticket with Adobe on this. Thanks.
Regards,
Vinod
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies