Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-3840

API: User endpoint doesn't the update of an email with e a different case

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 10.107.0
    • 10.102.2
    • REST API
    • 1
    • Severity 3 - Minor
    • No

    Description

      Issue Summary

      Trying to PATCH the email with the same value using a different case doesn't work.
      As an example, if the user has the email superemailtest2@superemail.com and we try to update it to Superemailtest2@superemail.com it fails with:

      Cannot update user with id xxxxx. Email with such name already exists.

      But if I do the same on the UI, it works without problems:

      By Diego Larangeira on 12/8/2021 2:53:55 PM
      User Updated -
      Email Changed - From [superemailtest2@superemail.com] To [Superemailtest2@superemail.com]

      Steps to Reproduce

      1. Run a PATH (thru swagger or curl) with content similar to the below, passing the same email the user has but with a different case:
        [
            {
                "op": "replace",
                "path": "email",
                "value": "Superemailtest2@superemail.com"
            }
        ]
        

        Expected Results

      TBD by Product Team

      Actual Results

      The error below is returned:

      Cannot update user with id xxxx. Email with such name already exists.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              kforeman@atlassian.com Kyle Foreman
              a8cff3407f0b Diego Larangeira
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync