mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-5645: Automate AC Prevent Classification Beyond Parents Classification: added checks for response code and message
This commit is contained in:
@@ -429,6 +429,7 @@ public abstract class BaseAPI
|
||||
|
||||
case HttpStatus.SC_INTERNAL_SERVER_ERROR:
|
||||
case HttpStatus.SC_BAD_REQUEST:
|
||||
case HttpStatus.SC_UNPROCESSABLE_ENTITY:
|
||||
if (responseBody != null && responseBody.has(EXCEPTION_KEY))
|
||||
{
|
||||
LOGGER.error("Request failed: " + responseBody.getString(EXCEPTION_KEY));
|
||||
|
Reference in New Issue
Block a user