Created attachment 1080199 [details]
Description of problem:
When Git Repository Path is set to another location than default (not the checkbox but the default filled path), business central items (rules, pom.xml and other files) are not visible in kie navigator.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set up and run a server.
2. Open Kie navigator, open properties for the server and change Git repository path.
3. Open org unit, open repository, error "Invalid remote origin" is displayed, see the attachment.
4. Open project. Browse project.
No items are visible.
Items (rules, pom.xml, ...) are visible.
Hmm, I'm not able to reproduce this. One thing to check is to make sure the specified git directory exists, and is empty. There is code in the property page that displays an error message if the directory does not exist, but it does not check if the directory is empty. Maybe there's a different git repo in there already that conflicts with the one being cloned from the server?
I use empty directory which exists. I see this issue in Eclipse and also in JBDS.
Some details to the steps:
I use new installation of Eclipse Luna only with these plugins:
Currently, I test this with BRMS business-central 6.2.0.ER4 on EAP 6.4.3.
For connection in kie navigator, I use 'restuser' which has 'rest-all,rest-project' roles.
I tried to run eclipse from terminal and I got this exception:
org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: ssh://restuser@localhost:8001/repository1: Invalid credentials.
... 4 more
If you still cannot see the issue, let me know and I will try to investigate more.
Created attachment 1083529 [details]
I attach screenshot of server properties.
today I tried kie navigator on my RHEL virtual machine and I didn't see the issue. I found two problems. The first one was some problem with my .ssh/known_hosts file but this problem is not related to kie navigator.
The important problem is the second one. I use 'restuser' which has 'rest-all,rest-project' roles but it looks like that this user cannot clone a repo from business-central. If I add some ui role to the user like admin or analyst role, the issue does not apper again.
Is it correct behaviour or is it a bug? If not, I will close this bz.
Hmm, I really don't know. It sounds like this is an issue with the REST service. The Kie Navigator is not designed to manage users and roles on the web server. Maybe we can just document around this bug? Specifically, I think we need to document exactly how users should be configured on the web server to allow use of Kie Navigator.
Created https://bugzilla.redhat.com/show_bug.cgi?id=1274446 as a documentation issue.
Ok, thank you Bob.
Verified with JBDS 9.1.0.Beta2 and Drools plugin 220.127.116.11601201107.