You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by po...@apache.org on 2024/11/18 18:12:12 UTC

(incubator-kie-kogito-apps) branch main updated: [incubator-kie-issues#1624] Add missing auth header to data-index SVG request (#2143)

This is an automated email from the ASF dual-hosted git repository.

porcelli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new d35035c92 [incubator-kie-issues#1624] Add missing auth header to data-index SVG request (#2143)
d35035c92 is described below

commit d35035c92e2667b0b5b96eaa7dd4a7a6d84f837a
Author: Pere Fernández <pe...@users.noreply.github.com>
AuthorDate: Mon Nov 18 19:12:09 2024 +0100

    [incubator-kie-issues#1624] Add missing auth header to data-index SVG request (#2143)
---
 .../org/kie/kogito/index/addon/api/KogitoAddonRuntimeClientImpl.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-common/runtime/src/main/java/org/kie/kogito/index/addon/api/KogitoAddonRuntimeClientImpl.java b/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-common/runtime/src/main/java/org/kie/kogito/index/addon/api/KogitoAddonRuntimeClientImpl.java
index 697dcfd1e..1f9b64d91 100644
--- a/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-common/runtime/src/main/java/org/kie/kogito/index/addon/api/KogitoAddonRuntimeClientImpl.java
+++ b/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-common/runtime/src/main/java/org/kie/kogito/index/addon/api/KogitoAddonRuntimeClientImpl.java
@@ -130,7 +130,8 @@ public class KogitoAddonRuntimeClientImpl extends KogitoRuntimeCommonClient impl
         if (processSvgService == null) {
             return CompletableFuture.completedFuture(null);
         } else {
-            return CompletableFuture.supplyAsync(() -> processSvgService.getProcessInstanceSvg(processInstance.getProcessId(), processInstance.getId(), null).orElse(null), managedExecutor);
+            return CompletableFuture.supplyAsync(() -> processSvgService.getProcessInstanceSvg(processInstance.getProcessId(), processInstance.getId(), this.getAuthHeader()).orElse(null),
+                    managedExecutor);
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org