You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "agrz (via GitHub)" <gi...@apache.org> on 2024/09/13 15:49:45 UTC

[I] Bug (v10): Invalid kogito.service.url config in Spring boot process starter [incubator-kie-issues]

agrz opened a new issue, #1480:
URL: https://github.com/apache/incubator-kie-issues/issues/1480

   Hi,
   in the kogito process Spring Boot starter  project there is a bug in the ProcessDefinitionRegistration bean.
   It should get the kogito.service.url configuration injected but in fact only get the constant string kogito.service.url.
   The problem is in the @Value annotation: https://github.com/apache/incubator-kie-kogito-runtimes/blob/df36a363e92c60341b903cc01cf206740255206e/springboot/starters/kogito-processes-spring-boot-starter/src/main/java/org/kie/kogito/process/ProcessDefinitionRegistration.java#L34
   
   It is defined as @Value("kogito.service.url"). But for Spring to actual replace the value from the environment it must be: @Value("${kogito.service.url}")
   
   THe effect of this is that the process definition events to data index all contain as endpoint the string kogito.service.url and not the correct url. THis will lead to errors in the management console.
   
   How to reproduce:
   Start a spring boot kogito service with process addon and event addon and configured property kogito.service.url=http://localhost:8080
   
   Expected Behavior:
   The process definition endpoint url in the data index data is the http://localhost:8080
   
   Actual Behavior
   The endpoint property is always the constant string kogito.service.url.


-- 
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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Bug (v10): Invalid kogito.service.url config in Spring boot process starter [incubator-kie-issues]

Posted by "carpiupin (via GitHub)" <gi...@apache.org>.
carpiupin commented on issue #1480:
URL: https://github.com/apache/incubator-kie-issues/issues/1480#issuecomment-2740851286

   Is there any update on this?, I am running the same error with a simple "hello world app" generated using springboot-kogito-starter


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Bug (v10): Invalid kogito.service.url config in Spring boot process starter [incubator-kie-issues]

Posted by "pefernan (via GitHub)" <gi...@apache.org>.
pefernan commented on issue #1480:
URL: https://github.com/apache/incubator-kie-issues/issues/1480#issuecomment-3248016958

   Hi @agrz thank you for creating this issue, yesterday I tackled this in a different issue (https://github.com/apache/incubator-kie-issues/issues/2081) and my PR got just merged.
   
   
   So I'm closing this since I consider this done.
   
   Thank you @carpiupin and @chauwel for your interest!


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Bug (v10): Invalid kogito.service.url config in Spring boot process starter [incubator-kie-issues]

Posted by "pefernan (via GitHub)" <gi...@apache.org>.
pefernan closed issue #1480: Bug (v10): Invalid kogito.service.url config in Spring boot process starter
URL: https://github.com/apache/incubator-kie-issues/issues/1480


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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