Red Hat Bugzilla – Bug 1003005
Clone repository dialogue stays operational
Last modified: 2016-07-31 21:08:04 EDT
Created attachment 792172 [details]
repo repeated in the explorer
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
java.lang.RuntimeException: org.eclipse.jgit.errors.MissingObjectException: Missing commit 47660831ae7955b3325752202bb91947450baf7a
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing commit 47660831ae7955b3325752202bb91947450baf7a
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.
Created attachment 792173 [details]
after clicking Clone 10 times, when cloning finishes
Created attachment 792174 [details]
I think I got this when I closed the dialogue, after I confirmed the cloning finished popup...Yes the dialogue stayed a bit longer than that.
Created attachment 792175 [details]
after clicking Clone, dialogue still visible
Fixed on UberFire master and 0.3.x branches:
The worst parts are fixed - you cannot click clone repeatedly.
Unfortunately, apart from the Clone and Cancel buttons, the rest can be changed. Even if only changing the organizational unit has any effect, it still shouldn't be possible to change these things.
Issue fixed on Uberfire master and 0.3.x branches:
Verified with ER5.