[MAGNOLIA-2079] Can't render icon on documents in inbox list Created: 27/Feb/08  Updated: 04/Aug/15  Resolved: 04/Aug/15

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

Type: Bug Priority: Minor
Reporter: Capitaine Harold Assignee: Philipp Bärfuss
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

The way to reproduce the bug:

  • Choose a document and activate it
  • Open the appropriate inbox and you can see that an item is well displayed
  • Change the name of the selected document in the dms Tree
  • Open the inbox and now a problem appeared because the icon can't be rendered.

The problem comes from MIMEMapping.getMIMETypeIcon() because the path given in parameter is the old path and not the new one.
By doing a simple test on extension value to avoid a null and return the default icon.

The activation will failed after but it's completely normal.

Cheers,



 Comments   
Comment by Magnolia International [ 10/Sep/08 ]

Can't reproduce this with 3.6.1 - after renaming a document (actually its URL, changing the filename has no effect), the icon I get is the "envelope" icon.
Can you confirm ?

Comment by Capitaine Harold [ 10/Sep/08 ]

It should have been corrected since I reported the bug.
Thanks.

Comment by Michael Mühlebach [ 04/Aug/15 ]

We're closing this issue as outdated as it was reported for 4.4.x or earlier versions which are no longer supported. Don't hesitate to reopen or create a new ticket in case this is still relevant and you'll experience it on 4.5.x or later versions.

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