Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Index GraphQL query fails when using non-default HTTP base path #1835

Open
cmarques opened this issue Feb 18, 2025 · 0 comments
Open

Data Index GraphQL query fails when using non-default HTTP base path #1835

cmarques opened this issue Feb 18, 2025 · 0 comments

Comments

@cmarques
Copy link

cmarques commented Feb 18, 2025

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"}

Environment

  • Kogito version: 10.0.0

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant