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

Bug 1322274

Summary: kie-config-cli: projects in repository not listed when running add-group-project command
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jan Hrcek <jhrcek>
Component: Business CentralAssignee: Marco Rietveld <mrietvel>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: high    
Version: 6.3.0CC: kverlaen
Target Milestone: ER3Keywords: Regression
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:11:47 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
Video showing the steps to reproduce the issue none

Description Jan Hrcek 2016-03-30 07:52:21 UTC
Created attachment 1141600 [details]
Video showing the steps to reproduce the issue

Description of problem:
When executing kie-config-cli command "add-group-project"
I am asked to enter repository name.
After I enter repository name I get a response "No projects found in repository <repoName>", despite the fact that the repository contains (many) project(s).

I reproduced this both with 1) example repo (enabled in Product by default), 2) with our testing repo as well as with 3) freshly created repo in the UI.

See video with steps to reproduce. In the video I'm showing the repos/projects in business central and then kie-config-cli.sh and contrasting it with kie-config-cli output.


Version-Release number of selected component (if applicable):
BPM Suite 6.3.0 ER2

How reproducible:
Always

Steps to Reproduce:
1. Having started fresh installation of BPM Suite business central (It contains example repo by default) I start kie-config-cli.sh
2. Interaction on command line:

>>Please specify location of remote git system repository [ssh://localhost:8001/system]
[PRESS ENTER]
>>Please enter username:
testadmin[PRESS ENTER]
>>Please enter password:
[type password][PRESS ENTER]

The authenticity of host 'localhost' can't be established.
DSA key fingerprint is 82:b3:67:69:5f:3b:7c:7a:83:b1:8b:cd:66:64:20:52.
Are you sure you want to continue connecting? [yes|no]:
yes[PRESS ENTER]
>>Please enter command (type help to see available commands): 
add-group-project[PRESS ENTER]
>>Repository alias:repository1[PRESS ENTER]

Actual results:
Result:
No projects found in repository repository1

Expected results:
Projects from selected repositories should be listed so that I can add group(s) to them.

Comment 2 Maciej Swiderski 2016-04-01 10:22:18 UTC
fixed, was caused by incorrect handling of identity instance for user doing the requests and thus was not allowed to see projects

kie-wb-distriybutions
master:
https://github.com/droolsjbpm/kie-wb-distributions/commit/24f0965cc417373ffef007cca3b006aeec3eadd8

6.4.x:
https://github.com/droolsjbpm/kie-wb-distributions/commit/bfa76794a42d04ed4b9c7118d531caa34d77710f

Comment 3 Jan Hrcek 2016-04-14 08:01:26 UTC
Ok, now it works again. Verified with BPM Suite 6.3.0 ER3