spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

throw original exception to keep compatibility with common RestTemplate

Open morokosi opened this issue 1 month ago • 0 comments

Currently, the doExecute method in spring−security−kerberos−client always wraps exceptions in a RestClientException. This unnecessarily complicates exception handling for HTTP status errors and other exceptions.

This change modifies the behavior to avoid wrapping an exception if it is already an instance of RestClientException.

This aligns the exception handling with other RestTemplate implementations, making it more consistent and easier to manage.

morokosi avatar Dec 06 '25 08:12 morokosi