-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
fix github migration error when using multiple tokens #34144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Is the basicAuth setup in client creation even working? |
IIRC "multiple tokens" are used to benefit more "access rate limit quota"? If only the first token is used, would it be more likely reach the rate limit? |
Honestly, I'm not sure if git clones count for rate limits. That's not rest api. Thread I found on this suggests they don't: https://github.com/orgs/community/discussions/44515 |
I'm fairly sure that basic auth can be removed but gitbucket might depend on it, which I know nothing about. |
|
* giteaofficial/main: (27 commits) fix github migration error when using multiple tokens (go-gitea#34144) Add package version api endpoints (go-gitea#34173) Fix incorrect file links (go-gitea#34189) Add cache for common package queries (go-gitea#22491) Allow admins and org owners to change org member public status (go-gitea#28294) Fix span svg layout (go-gitea#34185) fix webhook url (go-gitea#34186) Optimize overflow-menu (go-gitea#34183) Move and rename UpdateRepository (go-gitea#34136) Update milestones.tmpl (go-gitea#34184) [skip ci] Updated translations via Crowdin Refactor Git Attribute & performance optimization (go-gitea#34154) [skip ci] Updated translations via Crowdin fix(go-gitea#33711): cross-publish docker images to ghcr.io (go-gitea#34148) refactor organization menu (go-gitea#33928) feat: Add sorting by exclusive labels (issue priority) (go-gitea#33206) Fix vertical centering of file tree icons and use entryIcon for submodules/symlinks (go-gitea#34137) bugfix check for alternate ssh host certificate location (go-gitea#34146) Cache GPG keys, emails and users when list commits (go-gitea#34086) Set MERMAID_MAX_SOURCE_CHARACTERS to 50000 (go-gitea#34152) ...
I'll send a followup when I'll find the cause. I have no clues currently. Since CI passed it I doubt it's a single token issue (unless for some reason that test doesn't run in CI) so shouldn't be a regression at the very least. Without the fix the test passes on single token input. |
It worked before and the single test outcome is the same with and without the fix - both pass. So unless the token workflow stopped working there's no changes there. Logic is taken from NullDownloader just without support for user/pass system. Let's wait for more details from the reporter. |
If I understand correctly, the "oauth2:token" works with GitHub migration on your side, and at the moment it's unclear about how to reproduce the user's problem, right? |
Yes, at the moment is unclear what is the users issue after the patch. It could be any of:
Currently I suspect the last case, but I can manually test it later to be extra sure. |
Git authorization was not taking into account multiple token feature, leading to auth failures Closes: go-gitea#34141 --------- Co-authored-by: wxiaoguang <[email protected]> (cherry picked from commit 8a6df00)
Git authorization was not taking into account multiple token feature, leading to auth failures Closes: go-gitea#34141 --------- Co-authored-by: wxiaoguang <[email protected]>
Backport #34144 by @TheFox0x7 Git authorization was not taking into account multiple token feature, leading to auth failures Closes: #34141 --------- Co-authored-by: TheFox0x7 <[email protected]> Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
Git authorization was not taking into account multiple token feature, leading to auth failures
Closes: #34141
I made it default to first token. I'm honestly not sure if it wouldn't be better to scrap the multi token feature instead. The UI hides the tokens so it's hard to tell if no mistake was made in the input and it's the only provider "supporting" this.
I guess the intention was to somewhat speed up migration from github for a single repository which is nice too.