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

Claus Ibsen updated CAMEL-27745:
--------------------------------
    Fix Version/s: 4.25.0
                       (was: 4.24.0)

> camel-huaweicloud-dms: availableZones property as List, wrong displayName, 
> required flags
> -----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27745
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27745
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-huaweicloud-dms for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/b82eef5b59e581059179cfd3aa240e1194ec9c8c).
> These are separate problems of the component; the descriptions commit only 
> documents the current behavior.
> h4. 1. The CamelHwCloudDmsAvailableZones exchange property does not take a 
> List
> The usage section of the doc page gives the type of 
> {{CamelHwCloudDmsAvailableZones}} as {{List<String>}}. 
> {{DMSProducer.updateClientConfigs()}} reads it with 
> {{exchange.getProperty(DMSProperties.AVAILABLE_ZONES, String.class)}}, and 
> {{ClientConfigurations.getAvailableZonesAsList()}} splits that text on 
> commas. A {{List}} is converted with its {{toString()}}, so {{List.of("az1", 
> "az2")}} becomes the zones {{[az1}} and {{ az2]}}, and createInstance fails 
> at DMS. The split also keeps spaces, so the option value {{az1, az2}} gives 
> the zone {{ az2}}.
> Accept a {{Collection}} in the exchange property (or fix the doc type to 
> {{String}}), and trim each zone after the split.
> h4. 2. Wrong display name of the specification option
> {{DMSEndpoint.specification}} has {{displayName = "Engine version"}}, the 
> same as {{engineVersion}}. Tools that show display names show two options 
> named "Engine version".
> Change it to "Specification".
> h4. 3. Required flags that do not match the code
> * {{region}} is {{required = true}}, but {{DMSEndpoint.initClient()}} does 
> not use it when the {{endpoint}} option is set.
> * {{accessKey}} and {{secretKey}} are {{required = true}}, but 
> {{DMSEndpoint.initClient()}} takes both from {{serviceKeys}} when that option 
> is set, and does not use them then.
> Mark them as not required (the code already fails at the first message when 
> no credentials or no region and no endpoint are set).
> h4. 4. Missing enum and label metadata
> * The {{operation}} path option has no {{enums}}, although 
> {{DMSProducer.process()}} accepts only createInstance, deleteInstance, 
> listInstances, queryInstance and updateInstance.
> * {{accessKey}}, {{secretKey}}, {{serviceKeys}}, {{proxyUser}} and 
> {{proxyPassword}} are marked {{security = "secret"}} but have no {{label = 
> "security"}}, so they are listed with the common options.
> Add {{enums}} to {{operation}} and {{label = "security"}} to these options.
> _Claude Code on behalf of davsclaus_



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

Reply via email to