Bug 1324378 - Wrong .repo file in forked project.
Summary: Wrong .repo file in forked project.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Copr
Classification: Community
Component: frontend
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: clime
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-06 08:27 UTC by Miroslav Suchý
Modified: 2016-05-05 13:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-05 13:06:29 UTC


Attachments (Terms of Use)

Description Miroslav Suchý 2016-04-06 08:27:49 UTC
When you fork project the resulting .repo file is incorrect. There are several issues, but since they are very related I am creating only one BZ.

Steps to reproduce:

1. Create project msuchy/foo
2. Submit some build, wait until it finish.
3. Fork it into group project @copr/foo

Problems:
1) the *url* of repo file has name of the user who created that group project. E.g.  msuchy-foo-fedora-23.repo
2) in content of the repo file there is baseurl which refer to original owner of the project. In the example below it is
baseurl=https://copr-be.cloud.fedoraproject.org/results/mbabinsk/freeipa-4-3-centos-7/epel-7-$basearch/
where mbabinsk is the original owner of the project from which the project was forked to @freeipa group (by pvoborni).

While the first issue is just cosmetic, the second issue is big problem as users get data from incorrect project.

Example in real life:
https://copr.fedorainfracloud.org/coprs/g/freeipa/freeipa-4-3-centos-7/
https://copr.fedorainfracloud.org/coprs/g/freeipa/freeipa-4-3-centos-7/repo/epel-7/pvoborni-freeipa-4-3-centos-7-epel-7.repo

Comment 1 clime 2016-04-06 13:27:06 UTC
Fixed by 1933a454.

Comment 2 Jan Pazdziora 2016-04-20 08:10:09 UTC
I'd like to point out that if the goal is to point the "Epel 7" repo of
https://copr.fedorainfracloud.org/coprs/g/freeipa/freeipa-4-3-centos-7/
to https://copr-be.cloud.fedoraproject.org/results/%40freeipa/freeipa-4-3-centos-7/epel-7-x86_64/, that URL does not seem to have any repodata/ directory.

But that might be material for another bugzilla?

Comment 3 clime 2016-04-21 05:14:44 UTC
Yes, that's a different issue but a good point. The issue that I was solving is not yet in production. 

Please, if you can, fill a different bugzilla with a brief but fitting description of the issue you have discovered.

Comment 4 Jan Pazdziora 2016-04-21 06:56:22 UTC
Filed bug 1329076.

Comment 5 clime 2016-04-21 11:47:30 UTC
Thank you. Very good.

Comment 6 Miroslav Suchý 2016-05-05 13:06:29 UTC
Package including this fix has been deployed on production instance of Copr.


Note You need to log in before you can comment on or make changes to this bug.