Bug 1322274 - kie-config-cli: projects in repository not listed when running add-group-project command
Summary: kie-config-cli: projects in repository not listed when running add-group-proj...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER3
: 6.3.0
Assignee: Marco Rietveld
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-30 07:52 UTC by Jan Hrcek
Modified: 2020-03-27 20:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:11:47 UTC
Type: Bug


Attachments (Terms of Use)
Video showing the steps to reproduce the issue (5.23 MB, application/octet-stream)
2016-03-30 07:52 UTC, Jan Hrcek
no flags Details

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


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