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

Input data should be trimmed during bulk user upload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      wip-MDL-35850-master

      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

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              ankit_frenz Ankit Agarwal
              Peer reviewer:
              Jason Fowler
              Integrator:
              Aparup Banerjee
              Tester:
              Andrew Davis
              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:
                3/Dec/12