This patch seems to work! I can tell that the difference between having this patch or not for us meant having a broken site or a(n apparently) fully functional one.
These were the effects of the bug:
- Discourse not rendering to anonymous users beyond the header (totally unusable site).
- For registered users, probably non-cached content (i.e. Latest lists) wouldn’t render, and the rest was a hit or miss.
- Strangely enough, from three admins two would lose access to the web UI completely while a third (myself) still could access the admin interface and create a backup before rebuilding.
In other words: whatever is the bug, it can become a major one breaking the site.
Yesterday morning we upgraded Discourse, and the bug appeared hours later