A platform for community discussion. Free, open, simple.
FIX: Redirecting to download backup from S3 could fail (#20171)
Gerhard Schlager7482b0f70362
diff --git a/app/controllers/admin/backups_controller.rb b/app/controllers/admin/backups_controller.rbindex fd429312e73..99bc0ca2d35 100644--- a/app/controllers/admin/backups_controller.rb+++ b/app/controllers/admin/backups_controller.rb@@ -84,7 +84,7 @@ class Admin::BackupsController < Admin::AdminControllerStaffActionLogger.new(current_user).log_backup_download(backup)if store.remote?- redirect_to backup.source+ redirect_to backup.source, allow_other_host: trueelseheaders["Content-Length"] = File.size(backup.source).to_ssend_file backup.source