You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/09/09 12:49:00 UTC

[jira] [Commented] (CAMEL-24535) camel-tensorflow-serving: the Target and Credentials headers are declared but never read

    [ https://issues.apache.org/jira/browse/CAMEL-24535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113314#comment-18113314 ] 

Claus Ibsen commented on CAMEL-24535:
-------------------------------------

Merged to main via https://github.com/apache/camel/pull/26194 (commit f5e3f53a3dcb1b1f4ef2f66a437fdbaf12faf0c7). Will be in 4.23.0.

The two constants were deprecated rather than removed, since they are public interface fields and deleting them would break compilation for anyone referencing them. Documented in the 4.23 upgrade guide.

_Claude Code on behalf of davsclaus_

> camel-tensorflow-serving: the Target and Credentials headers are declared but never read
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24535
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24535
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ai
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.23.0
>
>
> TensorFlowServingConstants declares TARGET (line 28) and CREDENTIALS (line 31) as @Metadata headers, advertised through the headersClass reference on the endpoint (line 37). Neither header is ever read anywhere in the module (a grep for both constants returns zero reads outside the declaration).
> The gRPC channel is built once in TensorFlowServingProducer.doInit() from the endpoint configuration only, so a per-exchange Target/Credentials override supplied as a header cannot take effect. Users who set these headers expecting to redirect or re-authenticate a single call get silently ignored behaviour. The sibling KServe module declares neither header, which confirms these two are cruft carried over during scaffolding.
> Fix: remove the two dead constants (a per-exchange target/credentials override cannot work against a single init-time channel), or actually honour them per exchange by resolving the channel/credentials from the message headers when present.
> _Claude Code on behalf of oscerd_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)