Closed Bug 832140 Opened 12 years ago Closed 7 years ago

B2G SMS & MMS DB: check event.target.errorCode, return and handle appropriate error codes in callbacks

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-)

RESOLVED WONTFIX
blocking-b2g -

People

(Reporter: vicamo, Unassigned)

References

Details

Attachments

(2 obsolete files)

No description provided.
Blocks: 823010
Summary: B2G SMS: check event.target.errorCode and use appropriate error code in sms database → B2G SMS DB: check event.target.errorCode, send and handle appropriate error codes to callbacks in RadioInterfaceLayer
Are you going to do the work here, philikon?
Assignee: nobody → philipp
blocking-b2g: --- → tef?
(In reply to Andrew Overholt [:overholt] from comment #1) > blocking-b2g: --- → tef? Why does this issue deserve a tef?? This task affects almost nothing but more accurate error handling of sms db. Any other reasons?
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #2) > (In reply to Andrew Overholt [:overholt] from comment #1) > > blocking-b2g: --- → tef? > > Why does this issue deserve a tef?? This task affects almost nothing but > more accurate error handling of sms db. Any other reasons? This is marked as blocking bug 823010 which in turns blocks bug 808607. If this doesn't actually block bug 823010 I'm more than happy to remove the tef? :)
Assignee: philipp → nobody
Blocks: b2g-sms
No longer blocks: 823010
blocking-b2g: tef? → ---
Since the DB is shared for SMS and MMS now, the MMS DB callbacks would have the same issue. Please refer to nsIRilMobileMessageDatabaseCallback.
Blocks: b2g-mms
Summary: B2G SMS DB: check event.target.errorCode, send and handle appropriate error codes to callbacks in RadioInterfaceLayer → B2G SMS & MMS DB: check event.target.errorCode, return and handle appropriate error codes in callbacks
Component: DOM: Device Interfaces → RIL
Product: Core → Firefox OS
Hi all, I think that not only the checking event.target.errorCode but also the notifying user has to consider it about this bug. Because the user cannot notice the reception of the message by the present implementation. (And error continues being repaid to a server.) In addition, I think that I have to notify a user without transmitting a message when preservation to DB failed. Thanks.
It is necessary for Madai project. Set 1.4+.
blocking-b2g: --- → 1.4+
Bevis, after discussing with partners, this is a 1.4+ bug. Please help to fix it.
Assignee: nobody → btseng
To change internal ril interface.
Blocking LTE feature.
Blocks: b2g-LTE-1.4
This is a 1.4+ bug.
Take from Bevis.
Assignee: btseng → szchen
After confirmed with Szu-Yu, I'd like to take back from Szu-Yu to follow up.
Assignee: szchen → btseng
For checking the error condition of full storage, the alternative way is to provide a storage monitor to observe "disk-space-watcher" notification. Then, always consult the storage monitor before storing sms/mms. This will be consistent to what user aware from the notification tray and will be helpful to support RIL_REQUEST_REPORT_SMS_MEMORY_STATUS mentioned in bug#739143 in the future. I'd prefer to apply the alternative one to support the feature in bug#891344 instead.
Pre-condition: 1. According to bug#861903 and bug#853350, we know that when device storage is low, indexedDB only allows us for read access. 2. While testing, I found that event.target.errorCode is undefined when we access the indexedDB in storage full condition. No proper error code is available to identify the problem. Summary of the patch: 1. The main purpose is to add error handling of sending/receiving message while device storage is full. 2. Hence, instead of checking event.target.errorCode, the solution is to apply DiskSpaceWatcher.isDiskFull before any |Write| access to the MobileMessageDatabase and notify STORAGE_FULL_ERROR to the caller.
Comment on attachment 8378808 [details] [diff] [review] Patch Part 1: Add new error type STORAGE_FULL_ERROR. r=vyang Review of attachment 8378808 [details] [diff] [review]: ----------------------------------------------------------------- This bug is not for storage full event. Please move to either bug 891344 or bug 739143.
Attachment #8378808 - Flags: review?(vyang) → review-
Per discussion offline, 1. bug 891344 is dedicated for Gaia to fix the problem of sending/receiving message while message is full. 2. bug 739143 is more about adopting UNSOLICITED_SIM_SMS_STORAGE_FULL & RIL_REQUEST_REPORT_SMS_MEMORY_STATUS for modem. I'll fire another bug to provide the fix in gecko side for the problem of bug 891344.
No longer a 1.4+ blocking bug. Check Bug 974820 instead.
No longer blocks: b2g-ril-interface, b2g-LTE-1.4
blocking-b2g: 1.4+ → ---
Attachment #8378808 - Attachment is obsolete: true
Attachment #8378811 - Attachment is obsolete: true
Assignee: btseng → nobody
Put this bug into backlog.
blocking-b2g: --- → backlog
blocking-b2g: backlog → -
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: