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

Andrea Cosentino commented on CAMEL-24383:
------------------------------------------

PR opened against main: https://github.com/apache/camel/pull/25574

> camel-azure-key-vault: producer throws a copy-pasted "createSecret" 
> validation message for every operation
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24383
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24383
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-azure
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.23.0
>
>
> h3. Problem
> {{KeyVaultProducer}} reuses one constant in all five operations:
> {code:java}
> public static final String MISSING_SECRET_NAME = "Secret Name must be 
> specified for createSecret Operation";
> {code}
> It is thrown by {{createSecret}}, {{getSecret}}, {{deleteSecret}} and 
> {{purgeDeletedSecret}} (wrong operation name), and by 
> {{updateSecretProperties}} - doubly wrong, since that method validates the 
> secret-properties header (not a name) yet reports "Secret Name ... 
> createSecret".
> h3. Fix
> Use a per-operation message naming the correct operation and the field 
> actually validated (mirrors CAMEL-24249). Low severity (misleading 
> diagnostics only). Affects main (4.22.0-SNAPSHOT).



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

Reply via email to