Sicherungskopien können nicht heruntergeladen werden

Ich kann keine Backups meines Discourse herunterladen.

Meine Backups werden automatisch in einem AWS S3 Bucket gespeichert. Die Datei existiert und ich kann sie manuell herunterladen, indem ich den S3 Bucket über die AWS Konsole aufrufe.

Ich verwende v3.1.0.beta2 (e64d1c4105)

Schritte zur Reproduktion (mein Browser ist Safari 16.3 unter macOS Ventura 13.2):

  1. Gehe zu Admin > Backups
  2. Klicke auf den Download-Button
  3. Klicke auf den Link in der E-Mail, wenn sie eintrifft

Was sollte passieren?

  • Das Backup sollte heruntergeladen werden

Was tatsächlich passiert?

  • Ein Fehler erscheint im Browserfenster:

Die Discourse-Fehlerprotokolle zeigen einen fatalen Fehler:

ActionController::Redirecting::UnsafeRedirectError (Unsichere Weiterleitung zu „https://[REDACTED].s3.eu-west-2.amazonaws.com/default/[REDACTED]-2023-02-04…“, übergeben Sie allow_other_host: true, um trotzdem weiterzuleiten.

Und:

ActionController::Redirecting::UnsafeRedirectError (Unsichere Weiterleitung zu „https://[REDACTED].s3.eu-west-2.amazonaws.com/default/[REDACTED]-2023-02-04...“, übergeben Sie allow_other_host: true, um trotzdem weiterzuleiten.)
app/controllers/admin/backups_controller.rb:87:in `show'
app/controllers/application_controller.rb:414:in `block in with_resolved_locale'
app/controllers/application_controller.rb:414:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:74:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:369:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:228:in `call'

Backtrace

actionpack (7.0.4.1) lib/action_controller/metal/redirecting.rb:193:in `_enforce_open_redirect_protection'
actionpack (7.0.4.1) lib/action_controller/metal/redirecting.rb:89:in `redirect_to'
actionpack (7.0.4.1) lib/action_controller/metal/flash.rb:62:in `redirect_to'
actionpack (7.0.4.1) lib/action_controller/metal/instrumentation.rb:42:in `block in redirect_to'
activesupport (7.0.4.1) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.0.4.1) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (7.0.4.1) lib/active_support/notifications.rb:206:in `instrument'
actionpack (7.0.4.1) lib/action_controller/metal/instrumentation.rb:41:in `redirect_to'
app/controllers/admin/backups_controller.rb:87:in `show'
actionpack (7.0.4.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'

Env

HTTP HOSTS: greyarro.ws
3 „Gefällt mir“

Hier ist eine Korrektur:

6 „Gefällt mir“

Brillant! Danke für die Korrektur (und die Geschwindigkeit der Korrektur)! :bowing_man:t2:

3 „Gefällt mir“