Claus Ibsen created CAMEL-27785:
-----------------------------------

             Summary: 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
             Fix For: 4.25.0


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_



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

Reply via email to