You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Kogito with quarkus.http.root-path set to a value other than the default of /, the Process SVG Addon executes a request to the Data Index Service without taking into the account the quarkus.http.root-path that was set.
If the quarkus.http.root-path is set to /kogito, the request will still be made to /graphql, instead of /kogito/graphql.
Steps to reproduce
Set a non-default root path with quarkus.http.root-path=/kogito
Trigger an instance for <PROCESS_ID>
Execute the request to get the SVG of the Process Instance (replace <PROCESS_INSTANCE_ID> with the id returned from the previous request in step 2): curl -X 'GET' 'http://localhost:8080/kogito/svg/processes/<PROCESS_ID>/instances/<PROCESS_INSTANCE_ID>' -H 'accept: */*'
Expected behavior
SVG of <PROCESS_INSTANCE_ID>
Actual behavior
{"message":"Cannot invoke \"java.util.List.stream()\" because \"nodes\" is null"}
Description
When running Kogito with
quarkus.http.root-path
set to a value other than the default of/
, the Process SVG Addon executes a request to the Data Index Service without taking into the account thequarkus.http.root-path
that was set.If the
quarkus.http.root-path
is set to/kogito
, the request will still be made to/graphql
, instead of/kogito/graphql
.Steps to reproduce
quarkus.http.root-path=/kogito
<PROCESS_ID>
<PROCESS_INSTANCE_ID>
with theid
returned from the previous request in step 2):curl -X 'GET' 'http://localhost:8080/kogito/svg/processes/<PROCESS_ID>/instances/<PROCESS_INSTANCE_ID>' -H 'accept: */*'
Expected behavior
SVG of
<PROCESS_INSTANCE_ID>
Actual behavior
{"message":"Cannot invoke \"java.util.List.stream()\" because \"nodes\" is null"}
Environment
Additional Context
The request in question appears to be located at:
https://github.com/apache/incubator-kie-kogito-runtimes/blob/440d8a6616c896d843470f5375dce7bbca572d72/quarkus/addons/process-svg/runtime/src/main/java/org/kie/kogito/svg/dataindex/QuarkusDataIndexClient.java#L79
The text was updated successfully, but these errors were encountered: