[MGNLDAM-968] Resolving Mime Type via JcrAsset#getMimeType for video with extension .ogv yields 'video/theora' instead of 'video/ogg' Created: 21/May/21 Updated: 11/Nov/21 Resolved: 11/Nov/21 |
|
| Status: | Closed |
| Project: | Magnolia DAM Module |
| Component/s: | None |
| Affects Version/s: | 3.0.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Daniel Schneeberger | Assignee: | Javier Benito |
| Resolution: | Won't Fix | 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: | |
| Sprint: | Assets Maintenance 2 |
| Story Points: | 5 |
| Description |
Steps to reproduce
Expected results
Actual results
Development notes
NOTE: When the asset is uploaded the format is correctly set to video/ogg, once it is stored it is displayed as video/theora |
| Comments |
| Comment by Javier Benito [ 11/Nov/21 ] |
|
Mime type detection during file upload, before saving it in JCR, is being done with an external library called Tika (_https://tika.apache.org/_). This library, inspects the content of the file to detect the mime type of the content, by looking at the binary packages it has. In the case of OGV videos, it is detecting that they are video/theora, because looking at the bytes of the file, it finds a series of strings that indicate that it is video/theora, as they exist in OGV files. After having discussed it with miruela and nguyen.phung off the record, we think we can't provide a fix for this at this moment, so closing it. |