A platform for community discussion. Free, open, simple.
Fix `UploadRecovery` from S3 fails with bucket name containing sub-folder.
Guo Xiang Tanac52d8d3c7c6
diff --git a/lib/upload_recovery.rb b/lib/upload_recovery.rbindex 3ab5da75f83..6ec35141586 100644--- a/lib/upload_recovery.rb+++ b/lib/upload_recovery.rb@@ -165,7 +165,7 @@ class UploadRecoveryif key =~ /#{sha1}/tombstone_prefix = FileStore::S3Store::TOMBSTONE_PREFIX- if key.starts_with?(tombstone_prefix)+ if key.include?(tombstone_prefix)old_key = keykey = key.sub(tombstone_prefix, "")