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

Validator.class, _emailAddressPattern method has a typing error

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0 CE GA1
    • Fix Version/s: None
    • Component/s: Portal Services
    • Labels:
    • Fix Priority:
      2
    • OS:
      Windows 10
    • Application Servers:
      Apache Tomcat 8.0.x

      Description

      Hello there, 

      was just following the tutorial on the dev.liferay site. Some stepps in the tutorial i tryed out my projekt and noticed that on introducing an '@' char in my email adress(inside the web application i'm currently developing) i always get an error.
      So after some browsing and debuging i discovered, that in the Validator.class the emailAddressPattern method is flawed, it currently says: "[\\w!#$%&'*+/=?^`

      {|}~-]+(?:
      .[\\w!#$%&'*+/=?^_`
      {|}

      ~-]+)*@" +_
      "(?:[a-zA-Z0-9](?:-[a-zA-Z0-9])?
      .)+"

      yet it should say: "[\\w!#$%&'*+\/=?^_`

      {|}~-]+(?:
      .[\\w!#$%&'*+\/=?^_`
      {|}

      ~-]+)*@" +
      "(?:[a-zA-Z0-9](?:-[a-zA-Z0-9])?
      .)+"

      there are two \ missing.

      But i can't edit this patern, how do i do that?

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              ferugean.roland Roland Ferugean
              Participants of an Issue:
              Recent user:
              Sherry Zhu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                1 year, 25 weeks, 3 days ago

                Packages

                Version Package