Ticket #134 (closed defect: fixed)
RetrieveMessagebook method returns a SIM.NotFound error if the message list is empty
| Reported by: | charlie | Owned by: | mickey |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | framework/ogsmd | Version: | |
| Keywords: | AT, calypso | Cc: |
Description
In fact the actual error returned by the modem is CMS 321, that is : invalid message index.
This bug is the same than this one : http://docs.openmoko.org/trac/ticket/1757
citing 'balrog' : "Error 321 is "Invalid Memory Index", which means that there are no messages in the inbox. (Fully 3GPP compliant modems would just list zero messages and print OK but the TI Calypso is known to be special and give INVALID_MEMORY_INDEX"
Attachments
Change History
comment:3 Changed 3 years ago by mickey
- Status changed from new to closed
- Resolution set to fixed
Agreed, although I'd rather check for this in the generic handling method as I could imagine it's not just a Calypso specific thing. Did that in [df84c48ba7b142f2cdf5107837ce30bfe187a0b0], thanks all!
Note: See
TracTickets for help on using
tickets.


Current exception throwing behavior also breaks the zhone SMS component when you have no messages on the SIM yet, since component initialization calls RetrieveMessagebook?(”all”) and initialization of the component is not done if exception is returned. This might also be the cause of the bug #144
Attached is the patch to the frameworkd that makes it return empty list instead of the exception when calypso returns error 321