Skip to content

Migration from self hosted gitlab does not work with project name in URL #13269

Open
@pboguslawski

Description

@pboguslawski

Migration from self hosted gitlab-ce (checked many different versions with api v4: 9.x, 10.x, 11.x, 12.x and finally 13.3.7) to gitea v1.13 does not work if source repository URL contains project namespace + name like

https://my.gitlab.domain/me/myproject.git
https://my.gitlab.domain/me/myproject

Gitea throws error:

modules/task/task.go:51:handle() [E] Run task failed: GET https://my.gitlab.domain/api/v4/projects/me/myproject: 404 failed to parse unknown error format

Opening this URL in web browser returns

{"error":"404 Not Found"}

URL-s that work in web browser:

Tested that migration from such gitlab to gitea works when source URL is specified with repo ID not name like this:

https://my.gitlab.domain/10

Please verify and fix or (if using ID is required) update instruction in UI for users to know what to enter as URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/repo-migrationMigrate repos from other platforms to Gitea, or from Gitea to them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions