zhurandy / portal-issues-test

0 stars 0 forks source link

Setting unique virtual hosts: Userfriendly error message #143

Open zhurandy opened 10 years ago

zhurandy commented 10 years ago

When setting virtual hosts I've been bitten by the same problem as stated in http://www.liferay.com/widget/web/guest/community/forums/-/message_boards/message/439113 . Jorge suggests there to debug LayoutSetLocalServiceImpl.updateVirtualHost(...) for more information about the root cause. As there are severay reasons for rejecting the virtual host to be found in LayoutSetLocalServiceImpl.updateVirtualHost(...), it would be nice if they'd contain the reason in the error message - e.g. "the virtual host xxxxx.xxx.xx has already been assigned to the community xxxxxxxxx" or "...to the company xxxxxxyyyy" or "xxxxx.xxxxxxxxx.xx.xx is not recognized as a valid host name". As these messages probably would need to be localized and I have no working source-installation for liferay here, I'm sorry that I can't provide a tested patch. This would make it a lot easier to find the root cause for the problem. I'm now going to hunt for it in my installation...