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

Case differences in email break 'Upload users' update

XMLWordPrintable

    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • Easy
    • 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.

      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.

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

            devang2511 Devang Gaur
            howardsmiller Howard Miller
            Adrian Greeve Adrian Greeve
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ryan Wyllie Ryan Wyllie
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.