Skip to content
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

Pull Replication from GitLab does not work if not member of source group #20056

Open
aschaber1 opened this issue Feb 28, 2024 · 1 comment · Fixed by #20153
Open

Pull Replication from GitLab does not work if not member of source group #20056

aschaber1 opened this issue Feb 28, 2024 · 1 comment · Fixed by #20153
Assignees
Labels
help wanted The issues that is valid but needs help from community known-issue replication/adapters related to replication adapters

Comments

@aschaber1
Copy link

Hello,

I'm trying to pull replicate images from a public gitlab instance to a local harbor instance, but it does not find the images (hence the job ends with 0 Tasks).

I believe I tracked this down to:
The filter membership=true or membership=1 causes to return only projects of which one is a member. But in case of public repos/groups this is usually not the case.

My proposal is to remove the membership=true flag.

urlAPI := fmt.Sprintf("%s/api/v4/projects?membership=1&per_page=50", c.url)

urlAPI := fmt.Sprintf("%s/api/v4/projects?search=%s&membership=true&search_namespaces=true&per_page=50", c.url, name)

@MinerYang MinerYang added replication/adapters related to replication adapters help wanted The issues that is valid but needs help from community labels Mar 4, 2024
@zyyw zyyw reopened this May 17, 2024
@zyyw
Copy link
Contributor

zyyw commented May 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted The issues that is valid but needs help from community known-issue replication/adapters related to replication adapters
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants