brianchandotcom/liferay-portal — pull request #3477 by holatuwol (2011-12-28 20:25:59+00:00)
Title: LPS-24449

This exception is being thrown because the search term ('test') is also the screen name of a user that Guest does not have permission to see. So when it runs into the 'test' user result, an exception is thrown. Everything else that is shown in search (such as web content, blogs, wikis) do not require a permission check before returning an AssetRenderer. As such, the most natural fix is to leave the permission check to anything that wants to call AssetRenderer.hasViewPermission and to not do a premature permission check when returning the AssetRenderer itself.