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

Virtual Instances host name validation is inconsistent when editing

    Details

      Description

      Summary:
      The "Virtual Host" and "Mail Domain" fields have a validation check during the initial creation. If we create a proper virtual instance with valid "Virtual Host" and "Domain Names", anything can be inputted into those fields after editing.

      The validator will permit the formula of (1) alphanumeric unaccented characters [0-9a-zA-Z], hyphen, and underscore + (2) at least two alphabet characters for the top-level domain (TLD).

      Valid Invalid
      liferay.com liferay.c
      hello.co hello
      liferay.co.jp ライフレイ.jp

      Steps to Reproduce:
      1. Add a Virtual Instance with valid Virtual Host and Mail Domain > Save

      Virtual Host: lifer.ay
      Mail Host: life.ray

      2. Edit the same Virtual Instance's Virtual host and Mail Domain with things that would otherwise fail the initial validation

      Virtual Host: lifera.y
      Mail Host: サイト

      3. Change entries to "test" > Save

      Expected Results:
      Validation kicks in, so we're unable to save changes and a fail message

      Actual Results:
      We're able to save invalid hostnames with a success message

      Environment:
      Tomcat 9.0.17 + MySQL 5.7 + Portal 7.2.x GIT ID:
      0c346b627514af36785fd8f06befb86f10a584a8
      Base Branch Commit: c8164d415304a63bfe7e8370a726fd44596c625e

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                albert.lee Albert Lee
                Reporter:
                randolph.do Randolph Do (Inactive)
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
                Engineering Assignee:
                Albert Lee
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.1.10 DXP FP15
                  7.1.X
                  7.2.10 DXP FP1
                  7.2.X
                  7.2.1 CE GA2
                  Master