Failed validation on Repository label raises a weird error message on
1) Create a repository
2) then create a second one with same label. Something like
$ hammer repository create --name=boo1 --label=boo --product=justin --organization-id=1 --content-type=yum --url=http://justin.com
Could not create the repository:
Validation failed: Pulp has already been taken, Label has already been taken for this product.
This call is raising the right error and telling me correctly that the label has already been taken. But I don't know why it says Pulp has already been taken. I have no product or repos called pulp.
Basically this happens because of
validates :pulp_id, :presence => true, :uniqueness => true
However the user has no concept of a "pulp_id". Its more an internal attribute that is required to connect repos from katello to pulp . We need to somehow suppress this error message.
#4 Updated by John Mitsch 9 months ago
- Target version deleted (
- Status changed from New to Rejected
Thanks for reporting this issue. This issue was created over 4 years ago and hasn't seen an update in 1 year. We are closing this in an effort to keep a realistic backlog. Please open up a new issue that includes a link to this issue if you feel this still needs to be addressed. We can then triage the new issue and reassess.