Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

MMS doesn't follow 302 redirects

Open golfn4funin13 opened this issue 12 years ago • 22 comments

will not receive any mms messages or pictures

golfn4funin13 avatar Mar 29 '14 05:03 golfn4funin13

Hey @golfn4funin13, we're going to need more details to be helpful. Specifically, if you could tell us what carrier you're on, what version of Android, and maybe try receiving a message and pasting the debug logs (Settings -> Submit Debug Log), that would be very useful.

mcginty avatar Mar 30 '14 09:03 mcginty

MB886 ANDROID VERSION4.1. My carrier is Att. Gets all text messages only problem is with pictures in MMS. Sorry I deleted the thread with the errors have not used it again since. On Mar 30, 2014 4:00 AM, "Jake McGinty" [email protected] wrote:

Hey @golfn4funin13 https://github.com/golfn4funin13, we're going to need more details to be helpful. Specifically, if you could tell us what carrier you're on, what version of Android, and maybe try receiving a message and pasting the debug logs (Settings -> Submit Debug Log), that would be helpful.

Reply to this email directly or view it on GitHubhttps://github.com/WhisperSystems/TextSecure/issues/1267#issuecomment-39020873 .

golfn4funin13 avatar Mar 30 '14 12:03 golfn4funin13

I have the same issue with AT&T, on Android 4.4.

jkanethird avatar Apr 05 '14 18:04 jkanethird

You are probably both victims of the famous At&T apocalypse: https://github.com/WhisperSystems/TextSecure/issues/494 There are several other tickets with similar problems on AT&T. I think it would be best if you closed this ticket and added your descriptions + bug reports over there. Thanks!

generalmanager avatar Apr 05 '14 19:04 generalmanager

I have a samsung galaxy mega and at&t and these settings worked for me:

MMSC: http://mmsc.cingular.com MMS Proxy: wireless.cingular.com MMS Port: 80

sclompur avatar May 09 '14 00:05 sclompur

Seeing this recently on my Nexus 5, running CM11-M9 and on T-Mobile. Three MMS, and counting, messages today refuse to download with "Error Connecting to MMS provider...". Log is as follows:

http://hastebin.com/eloreliwat

skymoo avatar Aug 25 '14 13:08 skymoo

Well @skymoo is a 302 redirect. @mcginty it looks to me like you don't actually set HttpURLConnection.setFollowRedirect(true)?

moxie0 avatar Aug 25 '14 18:08 moxie0

I'm also getting similar errors when trying to send:

http://hastebin.com/acibayuxar

skymoo avatar Aug 28 '14 20:08 skymoo

I was just walking the dog and a MMS came through, sort of. As you can see in the attached screenshot the image isn't displayed but tapping on it results in the image being displayed.

img_20140828_161242

While out I also tried to send a MMS, this worked as well. The only thing different from when I tried before is that this time I was using my phones data connection instead of WiFi. Could this explain the inability to send/receive MMS messages?

skymoo avatar Aug 28 '14 21:08 skymoo

@skymoo Your problem was the 302 redirect, which should be fixed as of 2.1.7.

@golfn4funin13 The AT&T SMIL issue should also be addressed in 2.1.7. If you have more AT&T issues, please let us know in #511. Thanks!

moxie0 avatar Sep 08 '14 01:09 moxie0

Just tried sending a message, while on wifi and it failed with the following log:

http://hastebin.com/oyujibagor

Sending with cellular data works fine...

Also I'm still unable to receive when on wifi, the log is:

http://hastebin.com/lewisaqupi

Again I'm able to receive on cellular data and I still get the same icon as in my previous comment, again tapping on the icon results in the correct picture being displayed.

Just to confirm this is with 2.1.7, I updated this morning. Essentially I'm seeing exactly the same behaviour as I did with 2.1.6.

skymoo avatar Sep 08 '14 03:09 skymoo

@mcginty Still not following 302 redirects.

W/MmsDownloadHelper(29931): Response code: 302/Moved Temporarily
W/MmsDownloadHelper(29931): java.io.IOException: non-200 response
W/MmsDownloadHelper(29931):     at org.thoughtcrime.securesms.mms.MmsDownloadHelper.makeRequest(MmsDownloadHelper.java:55)
W/MmsDownloadHelper(29931):     at org.thoughtcrime.securesms.mms.MmsDownloadHelper.retrieveMms(MmsDownloadHelper.java:88)
W/MmsDownloadHelper(29931):     at org.thoughtcrime.securesms.service.MmsDownloader.retrieveAndStore(MmsDownloader.java:172)
W/MmsDownloadHelper(29931):     at org.thoughtcrime.securesms.service.MmsDownloader.handleDownloadMms(MmsDownloader.java:124)
W/MmsDownloadHelper(29931):     at org.thoughtcrime.securesms.service.MmsDownloader.process(MmsDownloader.java:66)
W/MmsDownloadHelper(29931):     at org.thoughtcrime.securesms.service.SendReceiveService$SendReceiveWorkItem.run(SendReceiveService.java:276)
W/MmsDownloadHelper(29931):     at org.thoughtcrime.securesms.util.WorkerThread.run(WorkerThread.java:46)

moxie0 avatar Sep 08 '14 03:09 moxie0

Yeah, just tested this on a controlled server. Looks like URLConnection doesn't follow redirects properly with POST requests (it turns into GET), so we got into a redirect loop. Going to have to write our own redirect logic.

mcginty avatar Sep 09 '14 19:09 mcginty

@skymoo Are you still seeing this with 2.1.8?

moxie0 avatar Sep 16 '14 17:09 moxie0

No luck sending an MMS whilst on wifi:

http://hastebin.com/hefizoyoye

I'm in the process of testing if I can receive.

skymoo avatar Sep 16 '14 17:09 skymoo

Not able to receive on wifi either:

http://hastebin.com/nuhuxukoko

I am able to receive when on cellular data and this time the thumbnail is correctly displayed

skymoo avatar Sep 16 '14 17:09 skymoo

@skymoo Your first log looks like it's missing some information. Did you remove the intro?

moxie0 avatar Sep 16 '14 18:09 moxie0

@skymoo Same for the second log.

moxie0 avatar Sep 16 '14 18:09 moxie0

I didn't remove anything, I waited for the process to fail to send (or download) and then immediately when to submit the debug log. It did take quite a while to fail, I can try to reproduce and resubmit logs but due to the time taken for the fail I imagine the same will occur?

I spoke too early before, I get the exclamation point icon instead of the thumbnail. Also it seems as though the incorrect thumbnail was displayed initially.

skymoo avatar Sep 16 '14 19:09 skymoo

For an unrelated reason I needed to perform a factory reset on my phone this weekend, I took this opportunity to test sending MMS over wifi with the stock client and that to had the same problem. I therefore don't think this is specific to TextSecure. I'm currently dealing with T-Mobile tech-support trying to figure out what's going on. I'll update this ticket with the outcome.

skymoo avatar Sep 22 '14 17:09 skymoo