From 0d4ef2484a46fc306a1dfd02e8882118593f65e3 Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Tue, 26 Mar 2024 14:26:35 -0700 Subject: [PATCH] Ensure `VaultRequest.builder()` copies all properties --- .../main/java/io/quarkus/vault/client/common/VaultRequest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/main/java/io/quarkus/vault/client/common/VaultRequest.java b/client/src/main/java/io/quarkus/vault/client/common/VaultRequest.java index 3c679c96..40d60ed1 100644 --- a/client/src/main/java/io/quarkus/vault/client/common/VaultRequest.java +++ b/client/src/main/java/io/quarkus/vault/client/common/VaultRequest.java @@ -368,6 +368,8 @@ public Builder builder() { var builder = new Builder(operation, method); builder.baseUrl = baseUrl; builder.apiVersion = apiVersion; + builder.operation = operation; + builder.method = method; builder.path = path; builder.token = token; builder.namespace = namespace; @@ -376,6 +378,7 @@ public Builder builder() { builder.headers = headers; builder.body = body; builder.expectedStatusCodes = expectedStatusCodes; + builder.timeout = timeout; builder.resultExtractor = resultExtractor; builder.logConfidentialityLevel = logConfidentialityLevel; return builder;