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

Input data should be trimmed during bulk user upload

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.4
    • Administration
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • wip-MDL-35850-master
    • Hide

      Testing

      1. Create a database activity with two fields. Make the last field a textarea.
      2. Make sure that you save the templates to display entries in the database.
      3. Create a csv file with some entries. Make sure that there are several blank lines after your entries.
      4. Go to [Settings ► Database activity administration ► Import entries]. Choose your csv file and submit it.
        The entries should enter in the database with no errors
      Show
      Testing Create a database activity with two fields. Make the last field a textarea. Make sure that you save the templates to display entries in the database. Create a csv file with some entries. Make sure that there are several blank lines after your entries. Go to [Settings ► Database activity administration ► Import entries] . Choose your csv file and submit it. The entries should enter in the database with no errors

    Description

      When you try to import a csv file which contain spaces after the delimiter, it doesnt work since the fieldname in the csv doesnt match the one in database because of extra space in the beginning or end.

      1. Goto admin>users>upload bulk users
      2. upload a valid csv file with spaces after "," (Example:- username, password, firstname, lastname, email)
      3. It generates an error when it shouldnt

      Attachments

        Issue Links

          Activity

            People

              abgreeve Adrian Greeve
              ankit_frenz Ankit Agarwal
              Jason Fowler Jason Fowler
              Aparup Banerjee Aparup Banerjee
              Andrew Davis Andrew Davis
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12