jackylee-ch opened a new pull request, #9661:
URL: https://github.com/apache/paimon/pull/9661

   ### Purpose
   
   `ErrorResponse`'s field and getter are `Integer`, but the `@JsonCreator` 
parameter was primitive `int` and the shared mapper leaves 
`FAIL_ON_NULL_FOR_PRIMITIVES` off. `code` has no `required:` entry in 
`rest-catalog-open-api.yaml`, so a server may legally omit it; it then 
deserialized to `0`, the HTTP-status fallback in 
`HttpClient#buildErrorResponse` never fired, and a 404 surfaced as 
`RESTException` reading `(HTTP 0)` instead of `NoSuchResourceException`. 
`DefaultErrorHandler` tolerates a null code too.
   
   Public constructor signature change in `paimon-api`: source- but not 
binary-compatible.
   
   ### Tests
   
   `HttpClientTest`.
   
   Written with Claude Code; reasoning and verification are mine.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to