PATCH NAME:
BZ-1310685
PRODUCT NAME:
Red Hat JBoss BRMS
Red Hat JBoss BPM Suite
VERSION:
6.2 Update 1
SHORT DESCRIPTION:
Kie-scanner fails to update kiebase if a modified rule makes reference to a global defined in a .gdrl file
LONG DESCRIPTION:
When converting an .xls file to a GDT, globals defined in the spreadsheet are stored in a .gdrl file in the same package. However, if an update is made to values in the decision table and the project is built/deployed, applications running a kie-scanner will fail to deploy the kiebase with an error.
INSTALL REQUIREMENT:
Red Hat JBoss BRMS 6.2 Update 1 or Red Hat JBoss BPM Suite 6.2 Update 1 is required
MANUAL INSTALL INSTRUCTIONS FOR ALL PLATFORMS:
1. Backup and remove the following jar:
$SERVER_DEPLOYMENT_DIR/business-central.war/WEB-INF/lib/drools-compiler-6.3.0.Final-redhat-7.jar
$SERVER_DEPLOYMENT_DIR/kie-server.war/WEB-INF/lib/drools-compiler-6.3.0.Final-redhat-7.jar
2. Unzip the file jboss-bxms-6.2.1-BZ-1310685.zip and copy:
BZ-1310685/drools-compiler-6.3.0.Final-redhat-7-BZ1310685.jar
to:
$SERVER_DEPLOYMENT_DIR/business-central.war/WEB-INF/lib
$SERVER_DEPLOYMENT_DIR/kie-server.war/WEB-INF/lib
ADDITIONAL INSTALL INSTRUCTIONS FOR ALL PLATFORMS:
Find and replace drools-compiler-6.3.0.Final-redhat-7.jar with the patched drools-compiler-6.3.0.Final-redhat-7-BZ1310685.jar
for all occurences of that file in your project.
MANUAL INSTALL INSTRUCTIONS FOR MAVEN BASED PROJECTS:
1. Extract the attached zip (jboss-bxms-6.2.1-BZ-1310685.zip) and change into the BZ-1310685 directory
2. Run the following commands to install the patch binaries to the local maven repository:
$ mvn install:install-file -Dfile=drools-compiler-6.3.0.Final-redhat-7-BZ1310685.jar -Dsources=drools-compiler-6.3.0.Final-redhat-7-BZ1310685-sources.jar -DgroupId=org.drools -DartifactId=drools-compiler -Dversion=6.3.0.Final-redhat-7-BZ1310685 -DpomFile=drools-compiler-6.3.0.Final-redhat-7-BZ1310685.pom -Dpackaging=jar
3. Override the original version of modified jars explicitly declaring them in <dependencyManagement> of your project pom.xml:
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
<version>6.3.0.Final-redhat-7-BZ1310685</version>
</dependency>
CREATOR:
Alessandro Lazarotti
DATE:
22-Feb-2016
The patch was built from wrong branch. It was built using branch 6.2.x of droolsjbpm/drools repository. However the patch is for BxMS 6.2.1 (see BZ header), which is on branch 6.3.x of drools repository. The commit with fix is also present on branch 6.3.x.
Comment 6Alessandro Lazarotti
2016-02-29 13:48:19 UTC
The patch was verified using reproducer for BZ#1310261 and regression tests passed successfully. This patch is ready for release.
patch md5sum - 9156ec8028d3dc8b77a827dd696ed26f
Note: It is important to note, that it is necessary to use patched drools-compiler-6.3.0.Final-redhat-7-BZ1310685.jar also while building client applications which use kjar with rules.
Comment 11Alessandro Lazarotti
2016-03-03 13:23:41 UTC
Thanks Jiri,
I added the note:
"Find and replace drools-compiler-6.3.0.Final-redhat-7.jar with the patched drools-compiler-6.3.0.Final-redhat-7-BZ1310685.jar for all occurrences of that file in your project." due that.
I am uploading it to support ticket right now.