[ 
https://issues.apache.org/jira/browse/CAMEL-27785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27785:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-google-vision for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/6c50b5db2244cbdbc971efde5c64a537b5812e48,
 pull request https://github.com/apache/camel/pull/31132).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. An unknown operation is not detected at endpoint creation
{{GoogleCloudVisionProducer.determineOperation}} calls 
{{GoogleCloudVisionOperations.valueOf}} for each message, so a wrong or wrongly 
cased operation fails only at send time.
Proposed change: make operation an enum option or validate it in createEndpoint.

h4. 2. Dead branch in GoogleCloudVisionClientFactory
The branch for a null credentials can only run when isAuthenticate() is false, 
which the vision configuration never sets.


_Claude Code on behalf of davsclaus_

  was:
Found while improving the option descriptions of camel-google-vision for 
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31132).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. An unknown operation is not detected at endpoint creation
{{GoogleCloudVisionProducer.determineOperation}} calls 
{{GoogleCloudVisionOperations.valueOf}} for each message, so a wrong or wrongly 
cased operation fails only at send time.
Proposed change: make operation an enum option or validate it in createEndpoint.

h4. 2. Dead branch in GoogleCloudVisionClientFactory
The branch for a null credentials can only run when isAuthenticate() is false, 
which the vision configuration never sets.


_Claude Code on behalf of davsclaus_


> camel-google-vision: an unknown operation fails only when a message is sent
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-27785
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27785
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-google
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-google-vision for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/6c50b5db2244cbdbc971efde5c64a537b5812e48,
>  pull request https://github.com/apache/camel/pull/31132).
> These are separate problems of the component; the descriptions change only 
> documents the current behavior.
> h4. 1. An unknown operation is not detected at endpoint creation
> {{GoogleCloudVisionProducer.determineOperation}} calls 
> {{GoogleCloudVisionOperations.valueOf}} for each message, so a wrong or 
> wrongly cased operation fails only at send time.
> Proposed change: make operation an enum option or validate it in 
> createEndpoint.
> h4. 2. Dead branch in GoogleCloudVisionClientFactory
> The branch for a null credentials can only run when isAuthenticate() is 
> false, which the vision configuration never sets.
> _Claude Code on behalf of davsclaus_



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

Reply via email to