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

Bug 1059608

Summary: kie-config-cli throws exception in remove-role-project command
Product: [Retired] JBoss BPMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: Business CentralAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, rrajasek
Target Milestone: ER1   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:02:12 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
kie-config-cli output none

Description Radovan Synek 2014-01-30 09:14:10 UTC
Created attachment 857404 [details]
kie-config-cli output

Remove-role-project command asks for repository name, then lists all available projects and lets user to choose one of them. After choosing a project, it throws an exception saying " Project <name-of-your-project> not found". In opposite, add-role-project command works as expected.

Take a look at the attached output.

Comment 1 Maciej Swiderski 2014-01-31 12:11:11 UTC
issue was caused by trying to remove roles if none yet existed and thus projects configuration was not available. Fixed it by ensuring that when no roles are assigned to project/repository an attempt to remove roles will not be allowed. Proper message will be displayed instead.

kie-wb-distributions
master:
https://github.com/droolsjbpm/kie-wb-distributions/commit/42e478a6c53fe077f3bbb3c1dcf75f5c379ce523

6.0.x:
https://github.com/droolsjbpm/kie-wb-distributions/commit/5676aeaeabc0cf9059b0036d8e29063b4fd77808

Comment 2 Radovan Synek 2014-02-20 10:56:08 UTC
Verified with BPMS-6.0.1.ER1