Project

Profile

Help

Test #4738

closed

File repositories shouldn't have duplicate files

Added by daviddavis over 5 years ago. Updated about 3 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
Actions #1

Updated by daviddavis over 5 years ago

  • Related to Task #4028: Prevent duplicate files in repositories added
Actions #2

Updated by ragbalak over 5 years ago

  • Assignee set to ragbalak
Actions #3

Updated by ragbalak over 5 years ago

  • Status changed from NEW to ASSIGNED
Actions #4

Updated by kersom over 5 years ago

  • Related to Test #4255: Checksum constraint error when syncing a package added
Actions #5

Updated by ragbalak over 5 years ago

kersom bherring

The testcase(both) for those are added in the branch https://github.com/ragabala/pulp_file/commits/fix_4738.

The first testcase is being testerd and meged in https://github.com/pulp/pulp_file/pull/216

Thanks and Regards,
Ragavendran B

Actions #6

Updated by ragbalak over 5 years ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (ragbalak)
Actions #7

Updated by pulpbot about 3 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF