Bug 1059263 - kie-config-cli enables to add the repository twice to the same organizational unit
Summary: kie-config-cli enables to add the repository twice to the same organizational...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER1
: 6.0.1
Assignee: Maciej Swiderski
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-29 14:09 UTC by Radovan Synek
Modified: 2014-08-06 20:03 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:03:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot (105.99 KB, image/png)
2014-01-29 14:09 UTC, Radovan Synek
no flags Details

Description Radovan Synek 2014-01-29 14:09:26 UTC
Created attachment 857091 [details]
screenshot

Kie-config-cli does not check if the org. unit has already associated the same repository. This is in contrary to behaviour of business-central which does not allow organizational unit to contain the same repository several times and can lead to inconsistent state.

steps to reproduce:
1. run kie-config-cli.sh and use commands:
2. create-org-unit
3. create-repo
4. add-repo-org-unit with the org. unit and repository from steps 2 a and 3.
5. repeat step 4
6. log in to business-central and navigate to Authoring -> Administration -> Organizational Units, select the org. unit created by CLI and observe Associated repositories.

Comment 1 Maciej Swiderski 2014-02-03 15:15:22 UTC
fixed for both cases
there was single, cumulative commit for recent issues with kie-config-cli as separate commits would make it more difficult due to extensive changes

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

6.0.x:
https://github.com/droolsjbpm/kie-wb-distributions/commit/653cbff5720f5138c91eb47c9d6aef7f1ab1a086

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


Note You need to log in before you can comment on or make changes to this bug.