mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
MNT-9401: CLONE - After Installed Records Management AMP in alfresco.log "Invalid JSON" error.
Log warning instead of throwing WebScriptException if invalid POST modelsdiff request was sent by SOLR. It can happen if SOLR starts sent requests while Alfresco is not up. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55476 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -52,7 +52,17 @@ public class AlfrescoModelsDiff extends DeclarativeWebScript
|
||||
}
|
||||
catch(JSONException e)
|
||||
{
|
||||
throw new WebScriptException("Invalid JSON", e);
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.warn("Unable to fetch model changes from " + req, e);
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.warn("Unable to fetch model changes from " + req);
|
||||
}
|
||||
status.setCode(Status.STATUS_BAD_REQUEST, "Unable to fetch model changes from " + req);
|
||||
status.setException(e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user