Type: Regression Bug
Affects Version/s: 6.1.0 CE RC1, 6.2.0 CE M2
Environment:Tomcat 7.0.22 + MySQL 5. 6.1.x Revision: 93700.
Navigate to Control Panel - Server / Portal Instances
Web ID: tiat
Virtual Host: tiat.tigercubtech.com
Mail Domain: tigercubtech.com
Max Users: 0
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.