Bug 1315199

Summary: Rules are visible in across repositories when using kie-config-cli
Product: [Retired] JBoss BRMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: Business CentralAssignee: Toni Rikkola <trikkola>
Status: CLOSED EOL QA Contact: Jiri Locker <jlocker>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:11:06 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:
Attachments:
Description Flags
[0] ClaimCycle repo
none
[1] Authorization repo - rules from ClaimCycle repo are visible none

Description Anton Giertli 2016-03-07 08:55:46 UTC
Created attachment 1133687 [details]
[0] ClaimCycle repo

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
very intermittently

Steps to Reproduce:
Scenario:
1. At the time of BRMS 6.2 installation, created user brmsAdmin as 'admin' role user. started BRMS server and tested brmsAdmin as admin privileges.
2. Created two Repo's - CLaimCycle and Authorisation. brmsAdmin has access to both the repo's.
3. created user analyst1 with 'analyst' role
4. created user analyst2 with 'myCustomRole' role
5. started kie-config-cli.bat and executed below commands.

list-repo
Result:
Currently available repositories:
        Repository ClaimCycle
         scheme: git
         uri: git://ClaimCycle
         environment: {username=brmsAdmin, scheme=git, security:r
         groups: []
        Repository Authorization
         scheme: git
         uri: git://Authorization
         environment: {username=brmsAdmin, scheme=git, security:r
         groups: []
        Repository repository1
         scheme: git
         uri: git://repository1
         environment: {username=brmsAdmin, scheme=git, security:r
         groups: []

>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
add-group-repo
>>Repository alias:ClaimCycle
>>Security groups (comma separated list):myCustomRole
Result:
Group myCustomRole added successfully to repository ClaimCycle

>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
push-changes
Result:
Pushed successfully
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
fetch-changes
Result:
Fetched successfully
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
add-group-repo
>>Repository alias:ClaimCycle
>>Security groups (comma separated list):myCustomRole
Result:

>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
push-changes
Result:
Pushed successfully
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
exit

6. As explained above I have executed 'add-group-repo' and added 'ClaimCycle' and 'myCustomRole'
7. executed 'push-changes' command and tested changes are not reflected.
8. Re-Started server and logged-in with analyst1 user and able to see both the repositories. 
   Logged-in with 'analyst2' user and he is able to see only Authorisation repo. 
   But when I logged-in with the brmsAdmin, able to see only Authorisation repo but ClaimCycle repo rules are copied into  Authorisation repo.

Actual results:
Rules from RepositoryX are visible under RepositoryY when using "Project View"

Expected results:
Rules from RepositoryX are NOT visible under RepositoryY

Additional info:
As you can see in the screenshot, rules from ClaimCycle repo are visible in Authorization repo = this should not happen.

I have reproduced this once, but then I was unable to to repeat it again.

Comment 1 Anton Giertli 2016-03-07 08:56:18 UTC
Created attachment 1133688 [details]
[1] Authorization repo - rules from ClaimCycle repo are visible