clustericious / Yars

Yet-another ARchive Service
5 stars 2 forks source link

Hard/impossible to determine duplicate files #28

Closed plicease closed 6 years ago

plicease commented 8 years ago

When a file is on the correct server and duplicated as a stash on a secondary server, HEAD request to the primary will actually return a 307 to the secondary server. This makes it impossible to determine if a file has been duplicated, via the API.

plicease commented 8 years ago

The primary should return 200 when the file is duplicated on both primary and stashed.

plicease commented 8 years ago

See code Yars::Routes#_head

plicease commented 8 years ago

Given a list of directories that have bad uploads.

perl -E 'system "yarsclient", "upload", $_ for @ARGV' `perl -E 'while(<STDIN>) { chomp; say "$_/*" }'