gitlab migration: fals token error is not reported #5974

Closed
opened 2025-11-02 06:41:43 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @6543 on GitHub (Sep 9, 2020).

gitea v: 1.13.0+dev-583-g090024db3

Migrate repository from https://gitlab.com/gitea/test_repo failed: error: GitlabDownloader is nil

Originally created by @6543 on GitHub (Sep 9, 2020). gitea v: 1.13.0+dev-583-g090024db3 `Migrate repository from https://gitlab.com/gitea/test_repo failed: error: GitlabDownloader is nil`
GiteaMirror added the type/bug label 2025-11-02 06:41:43 -06:00
Author
Owner

@jolheiser commented on GitHub (Sep 9, 2020):

Doing a little testing on try, it seems to work with a token. But migrating fails if using GitLab without a token.

@jolheiser commented on GitHub (Sep 9, 2020): Doing a little testing on try, it seems to work with a token. But migrating fails if using GitLab without a token.
Author
Owner

@jolheiser commented on GitHub (Sep 9, 2020):

I think what needs to happen here is that if no auth is passed, we should use the plain git downloader because the GitLab client expects to log into GL.

@jolheiser commented on GitHub (Sep 9, 2020): I think what needs to happen here is that if no auth is passed, we should use the plain git downloader because the GitLab client expects to log into GL.
Author
Owner

@6543 commented on GitHub (Sep 9, 2020):

@jolheiser the first api call retuned this: {message: 401 Unauthorized} - if token is wrong/outdated ->
currently it only will thell Downloader == nil but not the reason

@6543 commented on GitHub (Sep 9, 2020): @jolheiser the first api call retuned this: `{message: 401 Unauthorized}` - if token is wrong/outdated -> currently it only will thell Downloader == nil but not the reason
Author
Owner

@jolheiser commented on GitHub (Sep 9, 2020):

Gotcha. Alright, so then it needs a small refactor as well.

@jolheiser commented on GitHub (Sep 9, 2020): Gotcha. Alright, so then it needs a small refactor as well.
Author
Owner

@6543 commented on GitHub (Sep 9, 2020):

also notized we need a collor-code noramlizer: ( gitlab allow code #fde -> #ffddee )

@6543 commented on GitHub (Sep 9, 2020): also notized we need a collor-code noramlizer: ( gitlab allow code #fde -> #ffddee )
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5974