Project

Profile

Help

Task #2987

Updated by jortel@redhat.com over 7 years ago

The Distribution ViewSet serializer needs to previent base_path overlap.    The model (DB) ensures base_path uniqueness but does not prevent one base_path from being nested within another.    The look-and-see logic in the pulp2 check for this is subject to race conditions.    This needs to be solved using the DB. 

 For example: 

 base_path = a/b/c/d needs to reserve the entire directory tree.    Another base_path cannot begin with a/b/c/d. 

Back