Bug 1001969

Summary: Packages included in KieBase are filtered based on path rather than package declaration
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas Schlosser <tschloss>
Component: BREAssignee: Edson Tirelli <etirelli>
Status: CLOSED NOTABUG QA Contact: Tomas Schlosser <tschloss>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: rzhang
Target Milestone: ER3   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1018817 (view as bug list) Environment:
Last Closed: 2013-10-14 13:02:23 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:
Bug Depends On:    
Bug Blocks: 1018817    

Description Tomas Schlosser 2013-08-28 08:35:46 UTC
Description of problem:
If you use attribute 'packages' in kie module's declaration of kie base, the packages are filtered using the path they are on rather than package declaration that is in the rule file.

Version-Release number of selected component (if applicable):
BRMS 6.0.0.ER2

Additional info:
I guess this is for performance reasons, since compiling a rule file just to throw it away is a waste. However, I'd expect at least the warning when you compile file with different path and package declaration.
At the very least add this warning to documentation, so users know what to expect.

Comment 1 Edson Tirelli 2013-08-28 12:39:20 UTC
Tomas,

For 6, our goal is to enforce package->path consistency the same way that java does. We are probably not covering all use cases yet, but it is expected that if a resource is not properly stored into the correct path, it will result in problems, like the one described in this ticket.

So, I would like to suggest closing this ticket as not a bug, but of course, we are open to improve the way we enforce the package->path consistency.

Comment 5 Tomas Schlosser 2013-10-14 13:02:23 UTC
I have opened a bug for documentation as this has to be emphasized in documentation. Closing as NOTABUG.