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

Lessons IMS-CC import doesn't load HTML files into resources

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: OPEN
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.2
    • Fix Version/s: None
    • Component/s: Lessons
    • Labels:
      None
    • Environment:
      Ubuntu 16.04, Tomcat 8.5.31
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      When importing lessons from an IMS-CC archive, HTML files are not loaded into Resources for the site, even though the links to these resources are created in the lessons.  In doing a little digging, I came to PrintHandler.java at about line 1171.  Here we just do a return if the mime type starts with "text/".  In conversing with Matthew Jones, he suggested that maybe the code should be something like this:

      boolean forceInline = ServerConfigurationService.getBoolean("lessonbuilder.cc.import.forceinline", false);
      if (forceInline == true && (mime != null && mime.startsWith("test/"))
      return;

      I'm going to give this a try.  

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                maintenanceteam Core Team
                Reporter:
                dhearn Dave Hearn
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Source Code