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

Improved content type interpretation

    XMLWordPrintable

    Details

    • Type: (Deprecated) Contributed Patch
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.1, 11.0
    • Component/s: Kernel
    • Labels:
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1281

      Description

      I noticed that KNL-101 (Interpret content type if unknown) added extra retrieval and saving of resources.

      The following happens when saving a file (very high-level):

      • The file is saved
      • Read again from storage
      • Content type is fixed
      • saved again

      Note: not all steps are done every time.

      The attached patch takes what is done in KNL-101 and with a bit of refactor it fix the content type without reloading and saving again.

      I did test this but I think more testing is in order to make sure the stream is not corrupted.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    jonespm Matthew Jones
                    Reporter:
                    jaques@psybergate.co.za Jaques Smith (Inactive)
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    5 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration