KocsisDaniel/liferay-portal — pull request #100 by vilmospapp (2012-08-03 12:48:24+00:00)
Title: [TECHNICAL SUPPORT] LPS-28949 FriendlyURL to non-existing web content does not redirect correctly

Hi Dani,

This pull fixes a complex problem with FriendlyURL handling, as basically we let the portal to have a fallback and redirect to the first layout of the actual Site, but it's not the proper working as the user doesn't receive any feedback about that the given URL is bad, and not relates to any article or virtual layout.

I've discussed the possible effects of this modification with Juan and Ray as one part of the related code is commited by Juan and the other is commited to Ray. They both agreed to throw a NoSuchLayoutException should be fine there.

I created an integration test case as well to validate that both cases work properly. Please find it also in this pull.

Regards,
Vili