This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit e9860838b439bbcd25382962f34a0d52c005d464 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Jul 5 11:31:57 2022 +0200 CAMEL-18256 - Camel-Hashicorp-vault: Support Versioning of secret while reading --- .../apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java index 3ead39c6269..30a0355a4c1 100644 --- a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java +++ b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java @@ -83,7 +83,7 @@ public class HashicorpVaultProducer extends DefaultProducer { } String completePath = getEndpoint().getConfiguration().getSecretsEngine() + "/" + "data" + "/" + secretPath; if (ObjectHelper.isNotEmpty(secretVersion)) { - completePath = completePath + "?" + secretVersion; + completePath = completePath + "?version=" + secretVersion; } VaultResponse rawSecret = getEndpoint().getVaultTemplate().read(completePath); exchange.getMessage().setBody(rawSecret.getData());