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

Corrupt outcome csv import still adds the outcome

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.5, 2.0
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      • Upload the attached csv file to the outcomes import feature
      • Notice moodle reports "The uploaded file is empty or corrupted. Please verify this is a valid file. The problem was detected at line 2; this is triggered by the data lines not having as many columns as the first line (the header line) or if the imported file is missing expected headers. Look at the exported file for an example of a file with valid header."

      *Despite this error message, notice that moodle still still imports the outcome!

      (I came across this issue trying to reproduce an issue by reported by one of our schools. They imported a corrupt file which then caused breakage win the mdl_grade_outcomes table - so I suspect this may be partly to blame with the cause of that issue)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/09