Sanitizing ClientErrorException
, thrown for responses with 409 status code
#3885
AlexandrSokolov
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hallo,
The post request is sent with proxy-based resteasy client. The server returns 409 response code and inside of response body the error description in json format:
To handle errors later and extract all required data from both request and response, we assing in the client request response filter this information via custom response header.
Now, at least with version
6.2.4.Final
(in old versions it worked fine) you handle this error in a specific way. You sanitize response, seeWebApplicationExceptionWrapper#sanitize
. You don't only reset all the original response headers and leave only 2, you also entiryly reset all the information about the entity, with error description.Please change this logic, cause it is not possible without other hacks/workarounds to identify the error and what triggered that error.
Beta Was this translation helpful? Give feedback.
All reactions