cmarques opened a new issue, #1835:
URL: https://github.com/apache/incubator-kie-issues/issues/1835
#### 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 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
1. Set a non-default root path with `quarkus.http.root-path=/kogito`
2. Trigger an instance for `<PROCESS_ID>`
3. 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"}`
#### 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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]