[MGNLDAM-767] uploading more same assets breaks rendering Created: 14/Nov/18  Updated: 12/Mar/21  Resolved: 12/Mar/21

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Tomáš Gregovský Assignee: Unassigned
Resolution: Obsolete Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Magnolia_5.png    
Issue Links:
relation
is related to MGNLDAM-736 File renaming not persisted in node's... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Founded on Swissre project, client somehow managed to upload more same assets into one folder (not sure how they did upload process exactly) but as a result they have same image 3 times in dam, and to differentiate jcr add 0 a 1 at the end of the name for duplicates (see screenshot). Unfortunately because this number is part of name, which dam templating function damfn.getAssetLink() generate the link including .jpg0 (/dam/jcr:bd5f60df-0776-46f9-b5c6-438515d5868e/GFZ_90m_resolution.jpg0) and imaging module then fails to render such a image (seems like he is doing mime type recognition based on extension, not real mime type saved in dam workspace).

Suggested improvements:

  1. when duplicate in dam app is created make sure that 0 will no be added after .jpp (or any else extension), rather before.
  2. if link for image contains uuid (e.g. /dam/jcr:bd5f60df-0776-46f9-b5c6-438515d5868e/GFZ_90m_resolution.jpg0) use mimetype in saved in dam instead of recognition from extension in url


 Comments   
Comment by Roman Kovařík [ 12/Mar/21 ]

Can't reproduce on latest https://demo.magnolia-cms.com/.magnolia/admincentral#app:dam:jcrBrowser;/918112.png::

Generated at Mon Feb 12 05:03:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.