Uploading new `logo` then `logo small` shows inconsistent settings

AI-generated summary

JezPez reports a bug in Discourse 2.0.4beta2 where updating the logo and logo small settings via the admin panel leads to inconsistent behavior. After uploading and confirming a new logo, the logo small unexpectedly reverts to a previous version. Further updates to logo small appear to stick temporarily, but upon page refresh, both settings sometimes revert to older values — even though the header banner may still display the new logo. The issue seems intermittent and possibly related to caching or partial saving of settings. JezPez has been working around it by repeatedly re-uploading the logo, hoping it will persist. A GIF is provided to illustrate the behavior, showing the settings UI reverting despite apparent successful saves. The user is seeking help or guidance on how to investigate or resolve the issue.

Hi, I have been having an intermittent issue regarding settings persisting, then appearing to be reverted some hours later on their own.

I’ve managed to reproduce it clearly when I tried to update our logos for our self-hosted discourse dev instance which is on 2.0.4beta2.

Apologies for the large gif, I’ll explain what’s happening here:

  1. At the settings page /admin/site_settings/category/branding
  2. Upload a new file for the logo
  3. Confirm the new setting with the :white_check_mark:
  4. The logo-small seems to revert to a previous setting? (here is where the weirdness begins)
  5. Upload a new file for the logo small
  6. Confirm the new logo small with :white_check_mark:
  7. Refresh the page, seems that logo is persisted and set
  8. Refresh the page again, seems that logo is persisted in the banner, but the settings show the old logo and logo small

In further usage, the header logo will randomly revert to the previous setting. I have been working around this bug so far by just setting the logo again and again and hoping it will stick.

This feels like the settings are being cached or partially saved or something but I don’t know how to investigate further.
Any help or hints would be greatly appreciated. Thanks :slight_smile: