[
https://issues.apache.org/jira/browse/CAMEL-26218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino reassigned CAMEL-26218:
----------------------------------------
Assignee: Andrea Cosentino
> camel-kserve - infer with a body that is not a ModelInferRequest silently
> sends no inputs
> -----------------------------------------------------------------------------------------
>
> Key: CAMEL-26218
> URL: https://issues.apache.org/jira/browse/CAMEL-26218
> Project: Camel
> Issue Type: Bug
> Components: camel-ai
> Reporter: Claus Ibsen
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 4.24.0
>
>
> Found while adding the catalog body types of kserve (CAMEL-24961, PR #28402).
> h4. 1. A body that is not the request type is dropped silently
> {{KServeProducer.infer}} (main 2a465aa4814c, line 60) reads the body with
> {{getBody(ModelInferRequest.class)}} and merges it only when not null (line
> 71); a text, bytes or Map body is dropped and a request with no inputs is
> sent. The same applies to model-ready (line 79) and model-metadata (line 98).
> Checked on 4.24.0-SNAPSHOT with an in-process gRPC fake.
> Proposed: fail with a message that names the expected request type when the
> body is not null and cannot be converted.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)