Error in email validation regex pattern

XMLWordPrintable

      Summary

      User can no longer enter an email address with a top level domain with more than 4 characters into an invitation field. ( tested on Invite customers and Invite team)

      Environment

      JIRA Service Desk 3.1.8

      Steps to Reproduce

      1. Go to Service Desk project > Customers > Invite customers
      2. Enter a valid email address with a top level domain with more than 4 characters (for example, admin@local.travel)

      Expected Results

      Email address is valid and added to the list

      Actual Results

      Error message is shown : "admin@local.travel is not a valid email address"

      Notes

      The following regex pattern is used in javascript to valid email address :

      /^[a-zA-Z0-9_\-\+'`\?=\*%\$#!/^\{\|}~\.]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9]{2,4})$/
      

      which limited the top level domain to be less than 5 characters.

      This is woking in previous version of JIRA Service Desk (3.1.7)

      Workaround

      1. Create the user in JIRA with this email address : Cog icon > User Management > Users > Create User
      2. Set manually the user's group
      3. Add this user to the Service Desk role in Projects > ServiceDeskProject > Administration > Users and roles

            Assignee:
            Matthew McMahon (Inactive)
            Reporter:
            Chen Mao (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: