Users reported a critical bug in Discourse 1.3.0.beta1 where custom avatars fail to save, often reverting to default Gravatars. The issue manifests as a SecurityError regarding tainted canvases or CORS issues, particularly when using Amazon S3 for storage franklyn. While some users initially suspected browser incompatibilities, others confirmed the bug persisted across different browsers and storage backends (local vs. S3) riking, NomNuggetNom. A temporary workaround involved resizing images before uploading, suggesting the system loses access to the uploaded file czhou1801. sethd noted the issue was partially resolved in 1.3.0.beta2 with CORS fixes, though intermittent failures persisted. The discussion concluded with the core team, including @sam and @codinghorror, announcing the deprecation of S3 support for avatars and attachments due to the complexity of handling external storage and the lack of demand from paying customers. They recommended migrating to local storage with an origin-pull CDN for performance and offered assistance for the transition chapel, zogstrip.
We upgraded the discourse to 1.3.0.beta1
After that, users cannot change their avatars. Moreover, if user has already used his own avatar and try to change the custom avatar, his avatar changes to default Gavatar.
We use Amazon S3 to hold the uploaded files.
Where is the avatar you’re uploading coming from? If you’re dropping in an image from another browser window, that’s your problem. Save it to your filesystem first.
we tried to disable this option, ‘automatically download gravatars’. but it seems that when users try to upload their own avater, they always get Gravator (the 2nd optioin in the window, ‘change your profile picture’.
Here’s another error log. Still quite a big problem for us.
Info
Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
Url: http://forum.minecraftpvp.com/assets/application-92226ececbc49206d08980e7920bc4e2.js
Line: 11
Column: 69
Window Location: http://forum.minecraftpvp.com/users/dj_burgerz/preferences
Backtrace
Error: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
at Error (native)
at HTMLImageElement.n.onload (http://forum.minecraftpvp.com/assets/application-92226ececbc49206d08980e7920bc4e2.js:11:30353)