Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-968

Resolving Mime Type via JcrAsset#getMimeType for video with extension .ogv yields 'video/theora' instead of 'video/ogg'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Neutral
    • None
    • 3.0.7
    • None
    • None

    Description

      Steps to reproduce

      1. In Code fetch an Asset that is an .ogv video via DamTemplatingFunctions#getAsset
      2. Call #getMimeType on the retrieved Asset 
      3.  Observe that this call returns 'video/theora' instead of 'video/ogg'

      Expected results

      • #getMimeType for a .ogv video asset yields 'video/ogg'

      Actual results

      • #getMimeType for a .ogv video asset yields 'video/theora'

      Development notes

      • According to https://en.wikipedia.org/wiki/Theora the official MIME type for files with extension .ogv is 'video/ogg'
      • Please note that this happens even though the MIME type mapping configuration in '/server/MIMEMapping/ogv' maps to 'video/ogg'

      NOTE: When the asset is uploaded the format is correctly set to video/ogg, once it is stored it is displayed as video/theora

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jbenito Javier Benito
              quatico Daniel Schneeberger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD