catalyst / moodle-auth_outage

Planned, graduated user and admin friendly moodle outages
https://moodle.org/plugins/auth_outage
17 stars 33 forks source link

When prebaking the static theme file, handle redirects #234

Closed brendanheywood closed 3 years ago

brendanheywood commented 3 years ago

ie if a theme uses a file, the file normally is served as a redirect to s3 signed url. It is very likely this is getting broken somehow.

The symptoms are that this file is not being served using the static file.php, so it ends up going to a real script which then gets diverted to the outage page

brendanheywood commented 3 years ago

The root cause is this in outage page:

<div class="header-banner" style="background-image: url(https://xxxxxxx.xxx.edu/pluginfile.php/1/theme_xxx/banner/576336053/connections-abstract-fuschia-micro-banner.jpg)">

The pre-baker process is not correctly picking up this inline file reference and changing it to /auth/outage/file.php url