[jboss-jira] [JBoss JIRA] (DROOLS-5180) Kie-scanner update container API doesn't refresh container with latest jar after new year
Minal Bhalodi (Jira)
issues at jboss.org
Fri Mar 27 22:10:52 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14011906#comment-14011906 ]
Minal Bhalodi commented on DROOLS-5180:
---------------------------------------
Update container API we use:
curl --location --request POST 'http://localhost:8080/rest/server/containers/<container_name>/scanner' \
--header 'Authorization: <value>' \
--header 'Content-Type: application/xml' \
--data-raw '<kie-scanner status="SCANNING"/>'
Create container :
curl --location --request PUT 'http://localhost:8080/rest/server/containers/<container_name>' \
--header 'X-KIE-ContentType: XSTREAM' \
--header 'Authorization: <value>' \
--header 'Content-Type: application/xml' \
--data-raw '<kie-container container-id="<containerId>">
<release-id>
<artifact-id><value></artifact-id>
<group-id><value></group-id>
<version>LATEST</version>
</release-id>
</kie-container>'
> Kie-scanner update container API doesn't refresh container with latest jar after new year
> -----------------------------------------------------------------------------------------
>
> Key: DROOLS-5180
> URL: https://issues.redhat.com/browse/DROOLS-5180
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.18.0.Final
> Reporter: Minal Bhalodi
> Assignee: Mario Fusco
> Priority: Critical
>
> We are using kie-server as a stand alone application. we use kie scanner to update kie container when there is a new DRL file in our .m2 folder.
> we don't have scanner polling but we use Scanner update container API to update kie container.
> Every year when date changes after new year, we are facing issue where kie scanner is not able to update container with latest jar in m2 with new year date.
> When we check the container version it shows latest with new year date but internally kie is still using old jar.
> We fixed this issue with create container API instead update container.
> kie-server-spring-boot-starter-drools :7.18.0.Final
> Please let me know if this issue is already fixed or discussed before or if you need more details.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list