Closed Bug 875491 Opened 11 years ago Closed 11 years ago

thread UI gets broken when APN is bad

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:leo+)

RESOLVED DUPLICATE of bug 877064
blocking-b2g leo+

People

(Reporter: dietrich, Assigned: gerard-majax)

References

Details

i had an AT&T APN that was fine for data but not for MMS.

this caused sent MMS to not get sent and stay forever in the thread with a spinner

and received mms to show the "you've received a message" message with a download button, but download button did nothing.

instead, we should:

* if possible, let the user know that the messages aren't being sent because bad APN settings

* handle the zombie sent/rec'd messages in a better way in the UI
blocking-b2g: --- → leo+
Whiteboard: [NO_UPLIFT]
Whiteboard: [NO_UPLIFT] → [NO_UPLIFT][uplift-blocker]
I'm not sure what can be done here... Is the reason for an error even broadcast in a way we could interpret it?
Flags: needinfo?(schung)
Flags: needinfo?(ctai)
The messages seem to get stuck in deliveryState[0] === 'pending' btw...
It could be reproduced easily while switching the apn to custom settings. We need gecko to return error event if apn settings is invalid(for both sending/receiving). Maybe we need to set a timeout for this situation.
Flags: needinfo?(schung)
Whiteboard: [NO_UPLIFT][uplift-blocker] → [NO_UPLIFT]
Whiteboard: [NO_UPLIFT]
I'll try and see what I can do for this one.
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → ARM
After 3 times retry(interval is 5 minutes), the gecko will notify an error.

          aRequest.notifySendMessageFailed(Ci.nsIMobileMessageCallback.INTERNAL_ERROR);
          Services.obs.notifyObservers(aDomMessage, kSmsFailedObserverTopic, null);
Flags: needinfo?(ctai)
Looks like something wrong in the timer of retry send...
debuging..
No error seems to be sent also in case of MMSC triggering an error.
IMHO there are cases where we don't need to retry (like the MMSC proxy returning an error)
Blocks: 876350
Assignee: nobody → lissyx+mozillians
Julien,
Thanks for your suggestion, we will skip retry in some case on following version but not v1.1.
There is no callback in current APN activate function. So we don't have a better way to do this. I think some cases like HTTP/503 is worth to retry. That is why we use retry mechanism.



(In reply to Julien Wajsberg [:julienw] (PTO 30th May -> 10th June with no access to my bugmail) from comment #8)
> IMHO there are cases where we don't need to retry (like the MMSC proxy
> returning an error)
Dietrich, now 855610 877064 is landed. If APN wrong, gecko will retry(sending 3 times with 5 minutes interval and retry receiving 4 times with interval 1, 5, 10, and 30 minutes, Bug 840066).
After retry, the spin icon will turn to an error icon. Is this OK for you on this bug?
Flags: needinfo?(dietrich)
Yes, I did see this now - eventually see an error icon with bad APN.
Flags: needinfo?(dietrich)
I close this bug because of we can see an error icon with bad APN when 877064 landed.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.