Skip to content

Commit

Permalink
Fix UploadRecovery from S3 fails with bucket name containing sub-fo…
Browse files Browse the repository at this point in the history
…lder.
  • Loading branch information
tgxworld committed Oct 1, 2018
1 parent 05fe5c9 commit 40559b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/upload_recovery.rb
Expand Up @@ -95,7 +95,7 @@ def recover_from_s3(post:, sha1:)
if key =~ /#{sha1}/
tombstone_prefix = FileStore::S3Store::TOMBSTONE_PREFIX

if key.starts_with?(tombstone_prefix)
if key.include?(tombstone_prefix)
old_key = key
key = key.sub(tombstone_prefix, "")

Expand Down

0 comments on commit 40559b3

Please sign in to comment.