import from bitbucket cloud, repo and workspace list not populating #2818
floris huisman opened 4 weeks ago

We have been evaluating most git manage tools and, coming from bitbucket, onedev has the best fit and some excellent features. Thanks! I want to import the git and issues from bitbucket. But I cant get the workspaces and repos dropdowns to list any. For an import from gitlab this does work. The api token seems to have enough rights/access to bitbucket because I can make it through the first auth step.

We do have another method of getting our stuff into onedev, actually 2, but would very much like to import straight from bitbucket cloud. the other 2 are:

  • by python script and REST api but cant seem to backdate the issues that way (only importing via web ui works).
  • push everything to gitlab and then use the onedev import to get it from gitlab. While possible, this is a bit cumbersome obviously.

A screenshot when trying the import:

image.png

  • floris huisman commented 4 weeks ago

    Just found this in the server logs:

    io.onedev.commons.utils.ExplicitException: Http request failed (url: https://api.bitbucket.org/2.0/user/permissions/workspaces?pagelen=50, status code: 410, error message: {"type": "error", "error": {"message": "CHANGE-2770 - Functionality has been deprecated", "detail": "Please read the changelog entry for more details.", "data": {"announcement_url": "https://developer.atlassian.com/cloud/bitbucket/changelog#CHANGE-2770"}}, "data": {"announcement_url": "https://developer.atlassian.com/cloud/bitbucket/changelog#CHANGE-2770"}})

    So it seems OneDev crashes with the import flow because bitbucket turned some features off.

  • floris huisman changed fields 4 weeks ago
    Name Previous Value Current Value
    Type
    Question
    Bug
    Affected Versions
    empty
    15.1.6
  • OneDev commented 4 weeks ago

    State changed as build OD-7537 (15.1.7) is successful

  • OneDev changed state to 'Closed' 4 weeks ago
    Previous Value Current Value
    Open
    Closed
  • floris huisman commented 3 weeks ago

    Thanks for the quick action on taking up this bug. Something was fixed, but I reckon not all of it. The server log gives a different error now.

    For UX its still the same, so no new screenshot needed.

    There appears to be a slightly different error logged when opening the dropdown of the workspaces and the one for the repositories. For both I have attached the logs.

    repositories-dropdown-error-log.txt

    workspsace-dropdown-error-log.txt

  • floris huisman changed state to 'Open' 3 weeks ago
    Previous Value Current Value
    Closed
    Open
  • floris huisman changed fields 3 weeks ago
    Name Previous Value Current Value
    Affected Versions
    15.1.6
    15.1.7
  • Robin Shen commented 3 weeks ago

    Thanks for reporting. This issue will be fixed in 15.1.8 soon.

  • OneDev commented 3 weeks ago

    State changed as build OD-7549 (15.1.8) is successful

  • OneDev changed state to 'Closed' 3 weeks ago
    Previous Value Current Value
    Open
    Closed
  • floris huisman commented 3 weeks ago

    Thanks for reporting. This issue will be fixed in 15.1.8 soon.

    Thanks, confirmed working now. Although I reckon Issues aren't supposed to be imported? From gitlab they are imported that is why I was expecting it.

  • Robin Shen commented 3 weeks ago

    Issues will not be imported. However this can be achieved via JIRA issue importing.

  • floris huisman commented 3 weeks ago

    Thanks, we might have a look at it. Currently I have build a script that imports everything into OneDev, including downloaded attachments and images from bitbucket in issues and comments. Only thing left is then that the issues can't be backdated via the API. But we'll do so via a one-time database update, including a last activity history update for the status. Then we should be good. 👍

1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
15.1.7
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2818
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover