hhuijser/liferay-portal — pull request #2033 by daledotshan (2014-07-24 02:37:53+00:00)
Title: LPS-48720 Anyone can't filter web content by own site's structure

Here is the description from Hai

The issue was caused by when click "Browse by Structure"->"Test structure", it will invoke ActionUtil.getArticle(renderRequest); in com.liferay.portlet.journal.action.ViewAction render().

In com.liferay.portlet.journal.action.ActionUtil.getArticle(HttpServletRequest request), the below code will throw exception:
// 215 line
article = JournalArticleServiceUtil.getArticle(ddmStructure.getGroupId(), DDMStructure.class.getName(), ddmStructure.getStructureId());

The purpose of ActionUtil.getArticle(renderRequest) setAttribute "WebKeys.JOURNAL_ARTICLE" and "WebKeys.JOURNAL_RECENT_ARTICLES". However, for the feature "Browse by Structure", ActionUtil.getArticle(renderRequest) is not necessary. The code was added in "LPS-46224 Uses "Compare to" to compare versions like in wiki". So it should match "struts_action=/journal/select_version".

Thanks,
Hai