Konrad Windszus created CXF-8726:
------------------------------------
Summary: org.apache.cxf.jaxrs.client.ResponseExceptionMapper
cannot evaluate response body in case of retries
Key: CXF-8726
URL: https://issues.apache.org/jira/browse/CXF-8726
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 3.4.4
Reporter: Konrad Windszus
I have registered a custom
{{org.apache.cxf.jaxrs.client.ResponseExceptionMapper}}. In case the request is
retried (in my case via a {{org.apache.cxf.clustering.FailoverFeature}}
leveraging a {{RetryStrategy}}), the custom response exception mapper gets
{{null}} as return value for {{response.readEntity(Class)}} in its
{{fromResponse(Response response}} method as it seems this one can not/no
longer access the response body.
IMHO javax.ws.rs.core.Response.readEntity(...) must never return null but
rather throw an exception (compare with its javadoc at
https://docs.oracle.com/javaee/7/api/javax/ws/rs/core/Response.html#readEntity-java.lang.Class-).
--
This message was sent by Atlassian Jira
(v8.20.7#820007)