Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-50280

WebCT import scripts don't always clean up

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8.6, 2.9, 3.0
    • 2.8.7, 2.9.1
    • Questions
    • MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • Hide

      1. Create an invalid zip file. (E.g. rename any old .txt file to .zip.)
      2. Go to a course's question bank, select import
      3. Import the invalid zip file, with the webct option checked.
      4. Verify that no folders are present in tempdir/webct_import/

      Show
      1. Create an invalid zip file. (E.g. rename any old .txt file to .zip.) 2. Go to a course's question bank, select import 3. Import the invalid zip file, with the webct option checked. 4. Verify that no folders are present in tempdir /webct_import/

    Description

      There is a typo in /question/format/webct/format.php that prevents the import from tidying up the temporary directory if the script fails to import the zip file.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            skylarkelty Skylar Kelty
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Simey Lameze Simey Lameze
            Safat Shahin, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6/Jul/15