Unable to delete the duplicate asset

Avatar

Avatar
Boost 3
Level 1
nirbhays3027754
Level 1

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Ignite 1
Boost 1
Validate 1
View profile

Avatar
Boost 3
Level 1
nirbhays3027754
Level 1

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Ignite 1
Boost 1
Validate 1
View profile
nirbhays3027754
Level 1

04-04-2019

Unable to delete the duplicate asset by giving delete during upload

Steps to Recreate:

1> Login into DAM Author
2> Upload an asset.
3> Upload Same asset again.
4> Name conflict popup appears with 4 options(Cancel, Keep Both, Replace and Create Version)
5> Click on Keep Both button.
6> Duplicate Asset Detected popup appears with 2 options(Keep and Delete).

Issue 1: If duplicate asset is detected, path of the original asset is not getting displayed in the popup

Now click on Delete button

Issue 2: After clicking on 'Delete' button, Duplicate asset is getting uploaded

Kindly share the solution.

Replies

Avatar

Avatar
Springboard
Level 7
Prince_Shivhare
Level 7

Likes

123 likes

Total Posts

407 posts

Correct reply

65 solutions
Top badges earned
Springboard
Establish
Give Back 100
Boost 100
Validate 1
View profile

Avatar
Springboard
Level 7
Prince_Shivhare
Level 7

Likes

123 likes

Total Posts

407 posts

Correct reply

65 solutions
Top badges earned
Springboard
Establish
Give Back 100
Boost 100
Validate 1
View profile
Prince_Shivhare
Level 7

04-04-2019

I am using AEM 6.4 and when I click on to keep both then I am able to upload the asset however it automatically renamed.

like if it is image.png, it will rename to image1.png.

Capture.PNG

~ Prince

Avatar

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
aemmarc
Employee

04-04-2019

Do you have a requirement for duplicate detection? There's virtually no real usecase for this feature. Simply turn it off, it's disabled by default.

/system/console/configMgr/com.day.cq.dam.core.impl.servlet.CreateAssetServlet

Uncheck detect duplicate.

The reason you can't delete is because the user doesn't have those permissions to delete but the dialog doesn't differentiate that. The uploaded asset gets added and the duplicate remains. This is not a product issue and you'll need to raise a Daycare ticket with a strong business impact to have the functionality changed.

Avatar

Avatar
Give Back 5
Level 2
mr_chawla
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

5 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 2
mr_chawla
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

5 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
mr_chawla
Level 2

20-05-2019

HI nirbhays30277546

In an OOTB 6.4.4.0 scenario if you have detect duplicate enabled /system/console/configMgr/com.day.cq.dam.core.impl.servlet.CreateAssetServlet , you should firstly see below dialog as below asking you with Keep Both and other options

Upload_Dialog_1.png

And Once you select "Keep Both" option it should show you a Dialog as below showing original asset path where Clicking on Delete shouldn't upload the duplicate asset anymore and just refresh the page.

Upload_Dialog_2.png

In case you are seeing a different behaviour it would be best to check if you have any overlay defined at your end and if the issue is reproducible with admin. If overlay doesn't exist and the issue persists with admin too please go and ahead and raise a daycare ticket.

Thanks.