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

Case differences in email break 'Upload users' update

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Pre-requisites : Admin account access.

      Process :

      • use Upload Users with default settings and file test1.txt to create a new user - Fred Bloggs
      • now use test2.txt, selecting 'Update existing users only' and 'Existing user details' = 'Override with file and defaults'.
      • user is updated, location is changed to Manchester
      • now repeat the above using test3.txt
      • Make sure that user update occurs successfully.
      Show
      Pre-requisites : Admin account access. Process : use Upload Users with default settings and file test1.txt to create a new user - Fred Bloggs now use test2.txt, selecting 'Update existing users only' and 'Existing user details' = 'Override with file and defaults'. user is updated, location is changed to Manchester now repeat the above using test3.txt Make sure that user update occurs successfully.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Even though Moodle spots that it is a duplicate email address, an email that differs by case in the CSV file will prevent the user details being updated (as opposed to one that does not).

      To reproduce. Three example (tab delimited) files are attached

      • use Upload Users with default settings and file test1.txt to create a new user - Fred Bloggs
      • now use test2.txt, selecting 'Update existing users only' and 'Existing user details' = 'Override with file and defaults'.
      • user is updated, location is changed to Manchester
      • now repeat the above using test3.txt
      • Update fails.

      The only difference in test3.txt is that the email is changed in case. Moodle still indicates that it is a duplicate email (as it does for test2.txt) but it seems to be enough to break the process.

        Attachments

        1. test1.txt
          0.2 kB
        2. test2.txt
          0.2 kB
        3. test3.txt
          0.2 kB

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/May/16