Bug 724723 (BRMS-585)

Summary: Rules uploaded from JBDS get an extra package statement
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Rick Wagner <rwagner>
Component: BRM (Guvnor)Assignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.1.0 GA   
Target Milestone: ---   
Target Release: 5.1.0.PostGA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-585
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
BRMS 5.1, JBDS4
Last Closed: 2011-05-05 18:32:24 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:

Description Rick Wagner 2011-05-04 20:56:59 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000006njO2IAI&sfdc.override=1
Steps to Reproduce: Follow steps above.  Note:  If we write rules without a package in JBDS, it works differently (not quite sure it's correct, though.)  Also, this is against what the 'sample' rule shows. (It has a package.)
securitylevel_name: Public

1) Fresh installed BRMS Server.
2) Enable admin user so that you can log into the web console.
3) Go to http://10.10.108.197:8080/jboss-brms.
4) Authenticate
5) Click "Knowledge Bases" on "Navigate" to bring up the list of "Packages" and "Global Area"
6) Click "Create New"
7) A "Create a new package" dialog will appear.
8) Type "com.sample" in the Name.
9) Click "Create package"
10) Go to JBDS where you have Sample.drl.
11) Right click the Sample.drl file from the "Navigator". 
12) Click "Guvnor"--> "Add"
13) A dialog will appear to select the repository. If you do not have repository in the list, then create a new Guvnor repository. Once you finish this. Click Next.
14) Expand "packages". You should see com.sample package that you created in step 8.   // NOTE.  This is exactly the canned rule from JBDS sample rule. 
15) Select com.sample package, and click Finish.
16) Go to "http://10.10.108.197:8080/jboss-brms/org.drools.guvnor.Guvnor/package/com.sample/LATEST.drl"
17) You will be prompted for authentication. 
18) Authenticate with admin credentials.
19) Download the file if prompted.
20) Open the file, you should see two "package com.sample" there.

Comment 1 Tihomir Surdilovic 2011-05-05 17:52:02 UTC
Link: Added: This issue depends GUVNOR-1354


Comment 2 Tihomir Surdilovic 2011-05-05 18:32:24 UTC
Release Notes Text: Added: fix committed to 5.1.x branch