Project

Profile

Help

Test #4738

closed

File repositories shouldn't have duplicate files

Added by daviddavis almost 5 years ago. Updated over 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Platform Release:
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_file/613":https://github.com/pulp/pulp_file/issues/613


File repositories shouldn't have content units that have the same relative_path. Files are written to the filesystem based on their relative paths so obviously only one file can be written.

Test case 1

1. Sync a file remote repo with a file (eg 1.iso)
2. Sync a second remote with a different file with the same name
3. Confirm that there aren't two files with the same in the repo

For step 1, if you don't have two remotes that have different files with the same name, you could upload file instead and then sync for step 2.

Test case 2

This is the reproducer in #4028.

1. Upload two files and create two file content units with the same filename (e.g. 1.iso)
2. Add both files to your repo
3. Confirm that there aren't two files with the same in the repo


Related issues

Related to File Support - Task #4028: Prevent duplicate files in repositoriesCLOSED - CURRENTRELEASEbmbouter

Actions
Related to Pulp - Test #4255: Checksum constraint error when syncing a packageCLOSED - COMPLETEkersomActions

Also available in: Atom PDF