Actions
Bug #6129
openDiscourse: Setting a custom avatar via upload fails
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/02/2023
Due date:
% Done:
0%
Spec Reference:
Description
When uploading an avatar to discourse.osmocom.org, the server returns a HTTP 500 error on the avatar URL (i.e. 'https://discourse.osmocom.org/uploads/default/original/1X/f6c7f5bc8823dce321212e28315c34837b880a0f.jpeg')
When speaking to LaF0rge in IRC, it was noted that the file can't be found:
[18:28:21] <LaF0rge> Billy549: somehow the file cannot be found: ActionController::MissingFile (Cannot read file /opt/bitnami/discourse/public/uploads/default/original/1X/f6c7f5bc8823dce321212e28315c34837b880a0f.jpeg)
The upload seems to succeed when looking in the network tab, with the "uploads.json" request returning the following:
{
"id": 48,
"url": "https://discourse.osmocom.org/uploads/default/original/1X/f6c7f5bc8823dce321212e28315c34837b880a0f.jpeg",
"original_filename": "external-avatar.jpeg",
"filesize": 24370,
"width": 360,
"height": 360,
"thumbnail_width": 360,
"thumbnail_height": 360,
"extension": "jpeg",
"short_url": "upload://zd7RVJpQ8a1mW4926l55LlaLJPV.jpeg",
"short_path": "/uploads/short-url/zd7RVJpQ8a1mW4926l55LlaLJPV.jpeg",
"retain_hours": null,
"human_filesize": "23.8 KB",
"dominant_color": "918782"
}
No data to display
Actions