mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
FIX: S3Inventory#backfill_etags_and_list_missing
need to unescape key (#30787)
The `key` provided in the S3 inventory file will esacpe any special characters in the filename of the key so we need to unescape. Otherwise, uploads with extensions that conatins special characters will fail to match records which we insert into the temporary table based off the s3 inventory file.
This commit is contained in:

committed by
GitHub

parent
061899fee4
commit
1a70d118a8
@ -22,7 +22,7 @@ RSpec.describe "S3Inventory", type: :multisite do
|
||||
db1 = files["default"].read
|
||||
db2 = files["second"].read
|
||||
|
||||
expect(db1.lines.count).to eq(3)
|
||||
expect(db1.lines.count).to eq(4)
|
||||
expect(db2.lines.count).to eq(1)
|
||||
|
||||
files.values.each do |f|
|
||||
|
Reference in New Issue
Block a user