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

Bulk user upload (csv) invalid csv file errors are inadequate.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.7, 2.5, 2.6
    • Fix Version/s: 2.6.1
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Edit the supplied users.csv file and add another column to one of the entries.
      2. Try to upload the file [Administration ► Site administration ► Users ► Accounts ► Upload users].
      3. You should get an error that says "error/Invalid CSV file format - number of columns is not constant!"
      4. Try uploading an empty csv file. You should get an error message saying you have an empty file (from the file picker, if you could get past using an empty file in the file picker then the next page would also generate an error specifying that the file is empty).
      Show
      Edit the supplied users.csv file and add another column to one of the entries. Try to upload the file [Administration ► Site administration ► Users ► Accounts ► Upload users] . You should get an error that says "error/Invalid CSV file format - number of columns is not constant!" Try uploading an empty csv file. You should get an error message saying you have an empty file (from the file picker, if you could get past using an empty file in the file picker then the next page would also generate an error specifying that the file is empty).
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-42850-master

      Description

      Any incorrect user csv files that are uploaded just pop up a message saying that the file didn't load properly. The csv class stores more meaningful error messages which the bulk user upload file doesn't use.
      Additional information as to why the file didn't load properly would be invaluable.

        Attachments

        1. users.csv
          1 kB
          Adrian Greeve

          Activity

            People

            Assignee:
            abgreeve Adrian Greeve
            Reporter:
            abgreeve Adrian Greeve
            Peer reviewer:
            Frédéric Massart
            Integrator:
            Sam Hemelryk
            Tester:
            Ankit Agarwal
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Jan/14