Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-38695

Unable to manually override MIME type

    XMLWordPrintable

    Details

    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1278
    • Test Plan:
      Hide

      Upload a file into the resource tool in a site.
      Click on Actions -> Edit details for the file and change it's MIME type to something else.
      Click on Actions -> Edit details and check that the selected MIME type is still present.

      Show
      Upload a file into the resource tool in a site. Click on Actions -> Edit details for the file and change it's MIME type to something else. Click on Actions -> Edit details and check that the selected MIME type is still present.

      Description

      In Sakai 10 by default there is MIME type detection that is done on every content save of a resource.

      This means if you had a custom MIME type and update the resource properties the MIME type gets reset to what the detection thinks it should be.

      If you attempt to manually set a MIME type the MIME type detection overrides this value and you manual change is lost.

      To disable MIME type detection set: content.useMimeMagic=false in sakai.properties.

        Gliffy Diagrams

          Attachments

          1. KNL-1278.patch
            1 kB
          2. KNL-1278-dav.patch
            7 kB
          3. KNL-1278-oxford.patch
            2 kB
          4. KNL-1278-oxford-trunk.patch
            2 kB

            Issue Links

              Activity

                People

                • Assignee:
                  buckett Matthew Buckett
                  Reporter:
                  buckett Matthew Buckett
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code