Issue Summary
Issue importing repository from Bitbucket Cloud using the import repository feature.
Environment
- Bitbucket Server 5.14.0(tested with Bitbucket Server 6.2.0 and 6.3.0)
- Bitbucket Cloud
Steps to Reproduce
As guided in Import code using the web interface
Expected Results
The repository being imported from Bitbucket Cloud to Bitbucket Server
Actual Results
The following is seen in the UI:
The below exception is thrown in the atlassian-bitbucket.log file:
2019-05-31 16:46:11,582 DEBUG [httpclient-callbacks:thread-1] admin @1NY7RTIx1006x59x0 i84evd 0:0:0:0:0:0:0:1 "POST /rest/importer/latest/external-source/user HTTP/1.1" c.a.b.i.i.DefaultExternalRequestExecutor External request failed javax.validation.ConstraintViolationException: null at com.atlassian.bitbucket.util.ValidationUtils.validate(ValidationUtils.java:33) at com.atlassian.bitbucket.internal.importer.bitbucketcloud.BitbucketCloudRepositoryService.lambda$getUser$1(BitbucketCloudRepositoryService.java:88) at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:63) at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:11) at com.atlassian.util.concurrent.Promises$Of$3.apply(Promises.java:295) at com.atlassian.util.concurrent.Promises$2.onSuccess(Promises.java:185) at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457) at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:145) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:185) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at com.atlassian.util.concurrent.Promises$Of$3.apply(Promises.java:295) at com.atlassian.util.concurrent.Promises$2.onSuccess(Promises.java:185) at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457) at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:145) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:185) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$1$1.run(SettableFuturePromiseHttpPromiseAsyncClient.java:39) at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable$1.run(SettableFuturePromiseHttpPromiseAsyncClient.java:161) at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient.runInContext(SettableFuturePromiseHttpPromiseAsyncClient.java:75) at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.run(SettableFuturePromiseHttpPromiseAsyncClient.java:158) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.lang.Thread.run(Thread.java:748) ... 1 frame trimmed
Notes
Workaround
Instead of selecting the "Bitbucket Cloud" importer, select the "Git" importer to import each repository with its HTTPS clone URL.
Unfortunately, this workaround is cumbersome for multi-repository imports.
- causes
-
SSP-40991 You do not have permission to view this issue
Form Name |
---|