Missing header profile images on Meta

AI-generated summary

Users have reported missing header and background images on user profiles on Meta, with S3 returning a 403 error Hector. Mittineague also noted their user card background image is missing. tgxworld identified the issue as a regression from switching to dualstack endpoints for AWS S3, where the UserProfile table incorrectly stored image URLs instead of upload IDs, leading to broken links. A fix has been implemented and deployed to stable and beta via commit cfa7173 tgxworld.

Has anyone else noticed that the header/background images on user profiles are missing here on Meta? S3 gives a 403 (forbidden) error.

4 Likes

Hmmm. I had an image for a user card background but it’s not showing on my profile settings page. I don’t remember my having deleted it, so it looks like there’s a problem somewhere.

1 Like

This was caused by a regression when we switched to dualstack endpoints for AWS s3 and it looks like we missed the UserProfile table when correcting the links in the uploads table previously. We need to update UserProfile to not store the upload’s url in profile_background and card_background and instead point it to the upload’s id to avoid this nightmare in the future.

I’m pushing out the migration to fix this soon.

8 Likes

This is fixed in

https://github.com/discourse/discourse/commit/cfa7173da346ec9f31daac13b058ba82419771d9

Backported to stable and beta as well.

11 Likes