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

Misleading error message when adding a Portal Instance

    Details

      Description

      Navigate to Control Panel - Server / Portal Instances
      Click Add

      Enter:
      Web ID: tiat
      Virtual Host: tiat.tigercubtech.com
      Mail Domain: tigercubtech.com
      Max Users: 0
      Active: checked

      Click Save

      The error message returned is "Please enter a valid virtual host."

      In debugging to see why it said the host was invalid, I found that CompanyLocalServiceImpl.checkCompany initializes virtualHost to the webId. If the Web ID is not a valid domain name, the above error is returned even if the virtual host is valid.

      The documentation for Web ID in http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/global-server-settin-4 says "A general convention is to use the domain name for this. It's a user-generated ID for the instance." Prior versions of Liferay did not require that the Web ID was a valid domain name.

      If Web ID must be a valid domain the error message should be updated to point the admin in the right direction. If that isn't the intent then the validation seems to be wrong.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              luyang.tan Luyang Tan (Inactive)
              Reporter:
              dtroxel Deb Troxel
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 24 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.10 EE GA1
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2