Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-96295

Field syntax validation for email does not check top level domain

    Details

      Description

      Steps to reproduce

      1. Navigate to Liferay DXP > Content > Forms
      2. Add a new form
      3. Add a text field
      4. Navigate to Properties tab and set up as followings
        Validation:enable
        If input:Is not email
      1. Publish the form
      2. Add a form portlet to any page and select the form created in step 2
      3. Set "aaa@aaa" as a email address in the text field.

      Actual result
      The text is verified as a valid email address.

      Expected result
      The text should not be verified as a valid email address since it does not have a top level domain (eg "aaa@aaa.aa").

      Obs: When adding a user on portal, the email validation checks for a top level domain, so the input "aaa@aaa" is not valid there, while "aaa@aaa.aa" is a valid input for user email.

      For more details please see this comment on LPP-33986.

        Attachments

          Activity

            People

            • Assignee:
              harry.chai Harry Chai
              Reporter:
              lino.alves Lino Alves
              Participants of an Issue:
              Recent user:
              Jason Pince
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                21 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP84
                7.0.X
                7.1.10 DXP FP13
                7.1.X
                7.2.10 DXP FP1
                7.2.X
                7.2.1 CE GA2
                Master