Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.4.1
-
None
-
None
-
None
-
Unknown
Description
javax.ws.rs.core.Response.getLocation() used to return the URL of the service invoked. We used this information to enhance the error handling via a custom org.apache.cxf.jaxrs.client.ResponseExceptionMapper since CXF lacks to provide contextual information in error scenarios making it hard to use in productive environments when service client invocations fail without contextual information available.
After we now updated from 3.3.6 to 3.4.1 one of our tests failed with an NPE since response.getLocation() now returns null instead of the correct URL and we were doing url.toString() on that without checking for null.
I am working on ugly workarounds (casting to ResponseImpl and getting the Conduit to retrieve at least the base URL) but it would be great if CXF could fix this regression bug at the root.