Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1075293

Summary: KnowledgeAgent doesn't update kbase in Windows with roll-up patch#4
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Toshiya Kobayashi <tkobayas>
Component: BRE (Expert, Fusion)Assignee: Mario Fusco <mfusco>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.1CC: nwallace
Target Milestone: GA   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:35:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1080634    
Attachments:
Description Flags
BRMS531Ex08_kagent.zip none

Description Toshiya Kobayashi 2014-03-12 03:00:48 UTC
Description of problem:

Conditions:
- Windows
- BRMS 5.3.1 roll-up patch#4
- KnowledgeAgent with "drools.resource.urlcache" option

KnowledgeAgent doesn't update kbase when a package is updated in Guvnor.

This regression has been introduced by https://bugzilla.redhat.com/show_bug.cgi?id=1034030 because Windows fails on File.renameTo() when a target file exists.

Steps to Reproduce:
1. Unzip attached BRMS531Ex08_kagent.zip
2. Edit project classpath to point at roll-up patch#4 libraries
3. Edit DroolsTest.java to set "drools.resource.urlcache" to a directory in your environment
4. Start BRMS (this doesn't have to be roll-up patch#4) 
5. Import repository_export_kagent_test.xml in the zip
6. Run DroolsTest
7. Edit 'Hello' rule in defaultPackage and build defaultPackage in Guvnor

Actual results:

KnowledgeAgent doesn't update kbase so client output doesn't reflect the change.

Expected results:

KnowledgeAgent updates kbase so client output reflects the change.

Comment 1 Toshiya Kobayashi 2014-03-12 03:01:52 UTC
Created attachment 873275 [details]
BRMS531Ex08_kagent.zip

Comment 2 Toshiya Kobayashi 2014-03-12 08:28:58 UTC
Sent a pull request:
https://github.com/droolsjbpm/drools/pull/322

Comment 3 Mario Fusco 2014-04-23 07:58:17 UTC
Fixed by merging Toshiya's patch.

Comment 4 Petr Široký 2014-07-17 16:00:27 UTC
Verified fixed in 5.3.1-P06.

Comment 8 Red Hat Bugzilla 2025-02-10 03:35:20 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.