Project

Profile

Help

Issue #5567

Updated by bmbouter over 4 years ago

Steps to reproduce: 

 1. Create two files with the same relative_path 
 2. Add them to a repository with one single call 

 You'll end up with both in the repository, which is not valid. The problem is that the code is not checking the set of content it's adding to a repo version for duplicate repo_keys. I think the solution is to fail if there is duplicate repo_key content being added to a repo version. 

 h3. Todo 

 Also rename repo_key to repo_key_fields and make a property to implement similar to "natural_key_fields":https://github.com/pulp/pulpcore/blob/e2d8b54b2f35c0cf8de46a9d41c0ea118903e0f3/pulpcore/app/models/content.py#L258-L262

Back