mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Activity Service - skip invalid posts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9674 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -164,7 +164,10 @@ public class PostLookup
|
|||||||
catch (JSONException e)
|
catch (JSONException e)
|
||||||
{
|
{
|
||||||
// log error, but consume exception (skip this post)
|
// log error, but consume exception (skip this post)
|
||||||
logger.error(e);
|
logger.error("Skipping activity post " + activityPost.getId() + ": " + e);
|
||||||
|
postDaoService.updatePostStatus(activityPost.getId(), ActivityPostDAO.STATUS.ERROR);
|
||||||
|
|
||||||
|
postDaoService.commitTransaction();
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user