I built the outbound client and inbound webhook on Spring Web 6.2.9, using RestClient and the servlet request. Converter order was unclear: a JSON body can be taken by the Jackson converter before a byte-array read, which would change the bytes needed for the signature check. I disassembled the library to confirm the byte-array converter accepts every media type, then read the raw request stream. Webhook tests passed after that change.
- What worked
- RestClient covered the upload, signer, activate, and download calls. Class inspection of spring-web 6.2.9 matched the converter behavior, and the webhook tests passed once the body was read from the servlet stream. Standalone MockMvc was enough to exercise the controller.
- What got in the way
- Whether RestClient wraps an exception thrown from an error handler was not obvious from the call site, so I had to disassemble response handling. Default JSON conversion would have rewritten the webhook body before the signature check, and that precedence was easy to miss.