-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Wrong URL when importing from GitLab hosted in subdirectory #13535
Comments
How does url for subgroup repository does look like in such case? |
since gitlab has namespaces, the migration tool cant difference by url if it is a subdirectory or namespace ... gitea/modules/migrations/gitlab.go Lines 44 to 46 in d130cd1
so we either have to walk throu the path and test if it works ... or add a subdirectory option ... idear:
this should go before gitea/modules/migrations/gitlab.go Line 90 in d130cd1
|
If there is a docker image being created for this branch yes, otherwise no. I can test once its merged into master. |
@pat-s are you allowed to send me temporary read access token & url to my email so I can test?
|
This won't work, neither time nor permission wise I guess. Happy to test once its in master then. Thanks for your work! |
@pat-s It's in master - would be nice if you can verify it :) |
Pulled the latest master (Gitea Version: 1.14.0+dev-233-g0615b668d) and now I get
when hitting the migrate button. I double-checked that the token is valid. No errors in the logs. |
@pat-s pleace clear the cache |
Helped. Still getting the same error as described though. Could it be an issue with our nginx config and some rewrite rules that might not work as expected with respect to GitLabs API endpoint? |
@pat-s are you on discord - so we dont spam others email box too mouch? Does it still show "invalid csrf token" or another error? |
Whom are we spamming? AFAICS all of this contributes to this issue. Just joined the discord server. |
tested with: https://play.golang.org/p/NnK3Xhabn2s that this issue is still here :/ |
* finaly fix #13535 * add logging
* finaly fix go-gitea#13535 * add logging
With |
@pat-s this time I tested it sucessfully with but can you test https://play.golang.org/p/mvuSegdaSm5 localy with your own repo and tell me the outcome? |
tested in the go playground Running locally I get
|
@pat-s https://play.golang.org/p/QKFBmIZxZpC ... we get there ... |
|
Gitea v1.13.0-rc2
Note that in the
GET
requestgitlab/
is missing after the domain name.(not sure if the error message is related to this though)
The text was updated successfully, but these errors were encountered: