Claus Ibsen created CAMEL-26515:
-----------------------------------

             Summary: camel-grpc - a route-controlled reply is sent to the 
client without checking it is the response type of the method
                 Key: CAMEL-26515
                 URL: https://issues.apache.org/jira/browse/CAMEL-26515
             Project: Camel
          Issue Type: Bug
          Components: camel-grpc
            Reporter: Claus Ibsen
             Fix For: 4.24.0


Found while fixing CAMEL-26187. The consumer now converts the reply body to the 
response type of the gRPC method and fails the call with INTERNAL when it does 
not convert. The route-controlled path ({{routeControlledStreamObserver}}, the 
DELEGATION forwarding, {{GrpcProducerToRouteControlledStreamObserver.java}} 
around line 36) still calls {{onNext(body)}} with the body as is, because the 
response type is not known there.

Carry the response type to that path (e.g. as an exchange property set by the 
consumer) and apply the same conversion and error there.

_Claude Code on behalf of Claus Ibsen (davsclaus)_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to