Bug 1003005 - Clone repository dialogue stays operational
Summary: Clone repository dialogue stays operational
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER5
: 6.0.0
Assignee: Alexandre Porcelli
QA Contact: Zuzana Krejčová
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-30 13:05 UTC by Zuzana Krejčová
Modified: 2016-08-01 01:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Summary: Various errors prevent the successful cloning of a large GIT repository. Errors include clone dialog staying open, no feedback given to the user and the ability to click the clone button several times. Cause: Consequence: Fix: Result:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:20:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
repo repeated in the explorer (65.95 KB, image/png)
2013-08-30 13:05 UTC, Zuzana Krejčová
no flags Details
after clicking Clone 10 times, when cloning finishes (38.23 KB, image/png)
2013-08-30 13:06 UTC, Zuzana Krejčová
no flags Details
error popup (39.75 KB, image/png)
2013-08-30 13:08 UTC, Zuzana Krejčová
no flags Details
after clicking Clone, dialogue still visible (31.48 KB, image/png)
2013-08-30 13:09 UTC, Zuzana Krejčová
no flags Details

Description Zuzana Krejčová 2013-08-30 13:05:10 UTC
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
 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.

Comment 1 Zuzana Krejčová 2013-08-30 13:06:36 UTC
Created attachment 792173 [details]
after clicking Clone 10 times, when cloning finishes

Comment 2 Zuzana Krejčová 2013-08-30 13:08:28 UTC
Created attachment 792174 [details]
error popup

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.

Comment 3 Zuzana Krejčová 2013-08-30 13:09:12 UTC
Created attachment 792175 [details]
after clicking Clone, dialogue still visible

Comment 4 Alexandre Porcelli 2013-09-17 14:36:12 UTC
Fixed on UberFire  master and 0.3.x branches:

https://github.com/droolsjbpm/uberfire/commit/02f718600
https://github.com/droolsjbpm/uberfire/commit/f88cdcdb0

Comment 8 Zuzana Krejčová 2013-10-15 14:31:13 UTC
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.

Comment 9 Alexandre Porcelli 2013-10-25 19:14:45 UTC
Issue fixed on Uberfire master and 0.3.x branches:

https://github.com/droolsjbpm/uberfire/commit/f457588f1
https://github.com/droolsjbpm/uberfire/commit/0c7c1fe5b

Comment 10 Zuzana Krejčová 2013-12-09 16:23:08 UTC
Verified with ER5.


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