Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1612

function islandora_get_extension_for_mimetype() should not be used for (mime->ext) lookups

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.x-1.6
    • Fix Version/s: None
    • Labels:
      None

      Description

      function islandora_get_extension_for_mimetype() should not be used for (mime->ext) lookups.
      https://github.com/Islandora/islandora/blob/7.x/includes/mimetype.utils.inc#L17

      When used for (mime->ext) lookups, the result is a pure guess:
      https://github.com/Islandora/islandora/blob/7.x/includes/mimetype.utils.inc#L28

      See issue links below for resulting symptoms and side effects:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bradspry Brad Spry
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: