Details
-
Bug
-
Resolution: Done
-
Major
-
6.0.0
Description
Description of problem:
When cloning a git repository, you are prompted by a dialogue to enter name, group, url... then click Clone. When you try to clone a not so small repository, cloning can take quite some time. In such a case, the dialogue is visible through it all and operational as well. This is quite unfortunate.
You can click Clone multiple times, which results in multiple records of the same repo appearing in the explorer. This is only a visual bug fortunately. Switching perspectives fixes these multiple records.
The whole time, while the repo is being cloned, it looks like nothing is happening. User gets absolutely no feedback.
Furthermore, once the cloning finishes, you get a popup informing you - unfortunately, it automatically switches you to the business-central tab of the browser.
You can even change the values in the dialogue and try to clone again. This seems to break it, until refresh. Though changing the repo name and and clicking Clone achieves (seemingly) successful clones.
After all of this, I found a few of these in the server log:
Exception in thread "Thread-95" org.kie.commons.java.nio.file.NoSuchFileException
at org.kie.commons.java.nio.fs.jgit.JGitFileSystemProvider.readAttributes(JGitFileSystemProvider.java:1270)
at org.kie.commons.java.nio.file.Files.readAttributes(Files.java:572)
at org.kie.commons.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:52)
...
Also some
java.lang.RuntimeException: org.eclipse.jgit.errors.MissingObjectException: Missing commit 47660831ae7955b3325752202bb91947450baf7a
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing commit 47660831ae7955b3325752202bb91947450baf7a
and
org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking endpoint
Caused by: java.lang.RuntimeException: org.eclipse.jgit.api.errors.ConcurrentRefUpdateException: Could not lock HEAD. RefUpdate return code was: LOCK_FAILURE
Version-Release number of selected component (if applicable):
BRMS 6.0 ER2
Steps to Reproduce:
1. Find a large git repo.
2. Got to Administration, click Repositories, Clone repository.
3. Fill in data for the large repo.
4. Keep clicking Clone.