Closed Bug 946812 Opened 11 years ago Closed 10 years ago

[B2G][Contacts] Order by last name will stop functioning if the user sends a contact a message and then deletes them

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g18 unaffected, b2g-v1.2 affected)

RESOLVED WORKSFORME
Tracking Status
b2g18 --- unaffected
b2g-v1.2 --- affected

People

(Reporter: KTucker, Unassigned)

Details

(Keywords: regression, Whiteboard: dogfood1.2)

Attachments

(2 files)

Description:
"Order by last name" will stop functioning in contacts. This occurs if the user taps on a contact to message them, goes back to the contact app, deletes that same contact and then taps on the "Order by last name" option.

Repro Steps:
1)  Updated Buri to Build ID: 20131204004003
2)  Ensure the test phone has a large number of contacts on it. Use the script to add 2000 contacts.
3)  Tap on the "Contacts app" icon.
4)  Tap on any contact that has a phone number.
5)  Tap on the "Messages" icon by the phone number.
6)  Once the new message is opened in the messages app, press the "home" button on the phone.
7)  Tap on the "Contacts app" icon.
8)  Tap on the "Edit" button on that same contact from before.
9)  Scroll to the bottom and tap on "Delete contact".
10) Tap on "Remove".
11) Tap on the "Gear" icon to open up contact settings.
12) Tap on the toggle to "Order by last name".
13) Observe the user's list of contacts. 
14) If the user's contacts appear ordered correctly, repeat steps 4-13.

Actual:
"Order by last name" will stop functioning if the user messages a contact, deletes that contact and then tries to sort their contact list by last name.

Expected:
"Order by last name" functions properly without issue.

Environmental Variables
Device: Buri v 1.2.0 COM RIL
Build ID: 20131204004003
Gecko: http://hg.mozilla.org/releases/mozilla-b2g26_v1_2/rev/758f3fb32dda
Gaia: 8d762f3376318fd6be390432db750ae4904c9ab6
Platform Version: 26.0
RIL Version: 01.02.00.019.102 

Notes:
Repro frequency: 100%
See attached: video clip, logcat

Please note that i could only reproduce this issue when the device had a very large number of contacts. I could not reproduce this issue with 10 contacts saved on the device.
Does this reproduce on 1.1?
Keywords: qawanted
I could not reproduce this issue on Leo v 1.1.0 COM RIL

Environmental Variables
Device: Leo v 1.1.0 COM RIL
Build ID: 20131205041342
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/05117f42088f
Gaia: 6ff3a607f873320d00cb036fa76117f6fadd010f
Platform Version: 18.1
RIL Version: 01.01.00.019.281 

"Order by last name" functions properly without issue following the steps above.
If you end up in a state where order by last name fails, then is it possible for a user to recover from this situation to be able to eventually order by last name? Specifically, I'm wondering if there's a way to for a user to get order by last name working again if it failed for them. For example, if I kill the Contacts app, restart it, and try to order by last name - does that work?
:S weird error, thanks for catching it!
Keywords: qawanted
I can't reproduce this issue anymore as when you create an SMS from the Contact app, an activity is created. So I can't reopen contact to its main page without closing the activity.

Tested on today's master.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: