From: mark.j.leonard Date: Tue, 11 Jul 2017 11:02:13 +0000 (+0100) Subject: Fix incorrect result for a server response of 204 X-Git-Tag: v1.1.0~12 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=da669cac0eb4e1832082ffb91cf24f998c114dee;hp=da669cac0eb4e1832082ffb91cf24f998c114dee;p=aai%2Frest-client.git Fix incorrect result for a server response of 204 The Rest Client will not always call the method getEntity() on a com.sun.jersey.api.client.ClientResponse object, which is documented to throw a UniformInterfaceException if the HTTP server response status is 204 (No Content). This fix prevents the Rest Client handling the thrown exception by returning a 500 response to the caller, which would wrongly indicate an Internal Server Error. Change-Id: I7b78d2b43213e330593bbea559025f790db6264f Issue-ID: AAI-48 Signed-off-by: mark.j.leonard ---