juliocamarero/liferay-portal — pull request #917 by KocsisDaniel (2012-12-12 21:19:36+00:00)
Title: LPS-31578 Fix inaccessible default site page when site variation

Hey Julio,

this is the fix we have talked about regarding site layout revisions. When we call the LLSU.getLayouts() the LLSStagingAdvice skips all the layouts where the belonging layoutRevision status is incomplete if showIncomplete flag is false(default). Because in portalImpl we use the getlayouts() that has only 3 parameters and doesn't have the showIncomplete it remains false and the wrapReturnValue skips all the layouts so the site technically doesn't have a default page, which leads to exceptions.

The solution is to avoid to use the getLayouts() and in this case the advice won't filter the site list only wraps the layout we have as a result of the fetchFirstPage() call.

thanks,
Daniel