Describe the bug
Details contains snippet from auto bugreport request. Received an image in a Messenger message.
It didn't display in the thread view just showed as empty space. When clicked showed again as empty space and when attempting to download a red exclamation mark is shown. The request to post a bugreport popped up when ckicking the error.
Root cause of image not showing is obviously Facebook not serving it. But the missing image data could be indicated to the user already in the thread view. I guess "unsuccessful response" refers to HTTP status code, like a 404?
Screenshots available on demand.
Thanks for frost.
Details (please provide at least the app version):
OS Version: 3.18.91-14843133-QB22457191 (G930FXXS4ESC3)
OS SDK: 26
Device (Manufacturer): herolte (samsung)
Model (Product): SM-G930F (heroltexx)
Package Installer: com.google.android.packageinstaller
Tablet: false
Screen Dimensions: 1440 x 2560
App: com.pitchedapps.frost
App Version Name: 2.2.4
App Version Code: 2020400
As an additional aid, here is a HAR dump of the image request receiving a 503 done from a Firefox profile on which the account is logged into Facebook. Whether there is a session or not doesn't, however, seem to affect the response in this specific situation as can be seen from the similar response to the wget request below it (and wget even misrepresents it as "no server available").
(Strangely enough, the server around 21:10 UTC started responding with status 200, and at the moment the image is served even to the wget request. Are such content urls state/sessionless?)
$ wget --server-response "https://scontent-arn2-1.xx.fbcdn.net/v/t1.15752-9/fr/cp0/e15/q65/65741300_324235121858824_9056594634230202368_n.jpg?_nc_cat=110&efg=eyJpIjoidCJ9&_nc_oc=AQkp36H-LPsWVWiAszt5Au11vTbt2OL06kcmE4tfok1k1bqkPjzMRaX7QPiLC0r5rGE&_nc_ht=scontent-arn2-1.xx&oh=2b2ae1918e72b915e99359ebff3b344d&oe=5D8020C6"
--2019-07-03 23:01:38-- https://scontent-arn2-1.xx.fbcdn.net/v/t1.15752-9/fr/cp0/e15/q65/65741300_324235121858824_9056594634230202368_n.jpg?_nc_cat=110&efg=eyJpIjoidCJ9&_nc_oc=AQkp36H-LPsWVWiAszt5Au11vTbt2OL06kcmE4tfok1k1bqkPjzMRaX7QPiLC0r5rGE&_nc_ht=scontent-arn2-1.xx&oh=2b2ae1918e72b915e99359ebff3b344d&oe=5D8020C6
Resolving scontent-arn2-1.xx.fbcdn.net (scontent-arn2-1.xx.fbcdn.net)... 31.13.72.12, 2a03:2880:f00a:e:face:b00c:0:3
Connecting to scontent-arn2-1.xx.fbcdn.net (scontent-arn2-1.xx.fbcdn.net)|31.13.72.12|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 503 No server is available for the request
Content-Type: text/html; charset=utf-8
Access-Control-Allow-Origin: *
Date: Wed, 03 Jul 2019 21:01:38 GMT
Connection: close
Content-Length: 2959
2019-07-03 23:01:38 ERROR 503: No server is available for the request.
$
Describe the bug Details contains snippet from auto bugreport request. Received an image in a Messenger message. It didn't display in the thread view just showed as empty space. When clicked showed again as empty space and when attempting to download a red exclamation mark is shown. The request to post a bugreport popped up when ckicking the error.
Root cause of image not showing is obviously Facebook not serving it. But the missing image data could be indicated to the user already in the thread view. I guess "unsuccessful response" refers to HTTP status code, like a 404?
Screenshots available on demand.
Thanks for frost.
Details (please provide at least the app version): OS Version: 3.18.91-14843133-QB22457191 (G930FXXS4ESC3) OS SDK: 26 Device (Manufacturer): herolte (samsung) Model (Product): SM-G930F (heroltexx) Package Installer: com.google.android.packageinstaller Tablet: false Screen Dimensions: 1440 x 2560
App: com.pitchedapps.frost App Version Name: 2.2.4 App Version Code: 2020400
Url: https://scontent-arn2-1.xx.fbcdn.net/v/t1.15752-9/fr/cp0/e15/q65/65741300_324235121858824_9056594634230202368_n.jpg?_nc_cat=110&efg=eyJpIjoidCJ9&_nc_oc=AQkp36H-LPsWVWiAszt5Au11vTbt2OL06kcmE4tfok1k1bqkPjzMRaX7QPiLC0r5rGE&_nc_ht=scontent-arn2-1.xx&oh=2b2ae1918e72b915e99359ebff3b344d&oe=5D8020C6 Message: Unsuccessful response for image: <!DOCTYPE html>
I can add it. I'll have to look at the response for such images in greater detail, but I think you've provided me with enough info
Would be a nice addition, bug or not ;).
As an additional aid, here is a HAR dump of the image request receiving a 503 done from a Firefox profile on which the account is logged into Facebook. Whether there is a session or not doesn't, however, seem to affect the response in this specific situation as can be seen from the similar response to the wget request below it (and wget even misrepresents it as "no server available").
(Strangely enough, the server around 21:10 UTC started responding with status 200, and at the moment the image is served even to the wget request. Are such content urls state/sessionless?)
HAR:
Wget:
I added a small snippet to close the image activity if it isn't found.
I can't change the message thread ui easily since that's currently just a webview.
For errors, using the response code would be nicer but I'm currently passing the uri to the library only.
scontent urls typically don't require sessions