[MAGNOLIA-6576] MIMEMapping needs rewrite Created: 02/Mar/16 Updated: 21/Sep/22 |
|
| Status: | Open |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 5.4.5 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Low |
| Reporter: | Espen Jervidalo | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 5 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Template: |
|
||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||
| Task DoR: |
Empty
|
||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||
| Epic Link: | System config restrictions and externalisation - Phase 2 | ||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||
| Team: | |||||||||||||||||||||
| Description |
| Comments |
| Comment by Jan Haderka [ 11/Mar/16 ] |
|
Another thing for the rewrite - often same different mime mappings point to same extension. Currently Magnolia doesn't allow for 1:n relation between extension and mime type . That should be addressed by any eventual refactoring as well. |
| Comment by Jan Haderka [ 08/Dec/16 ] |
|
Hey this is bull*. info.magnolia.cms.beans.config.MIMEMapping is deprecated with comment * @deprecated since 5.4.6. This class will be replaced (see MAGNOLIA-6576). but this issue is not resolved leaving user with having to use deprecated class without replacement. Whole point of deprecation is to give people time to cleanup their code and move to newer API before the old one is removed, but with this class such move is not possible leaving just annoyance behind from having to use deprecated code. |
| Comment by Richard Unger [ 25/Jan/17 ] |
|
+1 to Jan's comment Also, could you please make the mapping queryable in both directions? Eg, given a mime-type, load the icon or extension(s) for this mimeType? Thanks! |