[B2G][Contacts][Facebook Sync]Contacts imported from Facebook do not sync every 24 hours to reflect profile changes.

RESOLVED FIXED in Firefox OS v1.3

Status

Firefox OS
Gaia::Contacts
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Ross Kuhlman (rkuhlman@qanalydocs.com), Assigned: Jose Manuel Cantera)

Tracking

({regression})

unspecified
1.3 C3/1.4 S3(31jan)
ARM
Gonk (Firefox OS)
regression

Firefox Tracking Flags

(blocking-b2g:1.3+, b2g18 unaffected, b2g-v1.2 affected, b2g-v1.3 fixed)

Details

(Whiteboard: burirun1.3-1, burirun 1.3-2 [mwcdemo2014])

Attachments

(5 attachments)

Any contacts that are synced to facebook must update every 24 hours to reflect changes made to the Facebook profile. The contacts do not update. 

Repro Steps:
1) Updated Buri to Build ID: 20131219004002
2) Launch Contacts App and import a profile from facebook.
3) Use PC to log into imported facebook profile and make alterations. (ex: set ph# from public to private)
4) Wait 24 hours and then open the contacts app.

Actual:
Facebook details do not update after 24 hours.

Expected:
After 24 hours the automatic Facebook sync should update and reflect changes made on the profile.

Environmental Variables
Device: Buri v1.3 Moz RIL
Build ID: 20131219004002
Gecko: http://hg.mozilla.org/releases/mozilla-aurora/rev/809aabadac6d
Gaia: a99249a7fdf9f20850d98a9a222385676d472362
Platform Version: 28.0a2
Firmware Version: V1.2_20131115

Notes:
Repro frequency: 100%
I tried editing the config.json file to automatically sync contacts every 5 minutes. 30 minutes later, no changes have been observed in the contacts.

File modified:
system/b2g/webapps/communications.gaiamobile.org/applications.zip/Contacts/config.json
Does this reproduce on 1.2?
Keywords: qawanted
This issue also occurs in 1.2

Environmental Variables
Device: Buri v1.2 Moz RIL
Build ID: 20131218004002
Gecko: http://hg.mozilla.org/releases/mozilla-b2g26_v1_2/rev/dcffefec8206
Gaia: 38338b31b554cdb8c6242b15a966f171a0e7abaa
Platform Version: 26.0
Firmware Version: v1.2_20131115

I will add another update tomorrow to determine if this happens in 1.1 (need to wait 24 hrs to be sure)

Updated

5 years ago
status-b2g-v1.2: --- → affected
status-b2g-v1.3: --- → affected
Keywords: qawanted

Comment 4

5 years ago
This issue does not occur in V 1.1.0

Environmental Variables
Device: Buri v 1.1.0 Mozilla
Build ID: 20140102041202
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/bdac595a4e46
Gaia: 6ff3a607f873320d00cb036fa76117f6fadd010f
Platform Version: 18.1
RIL Version: 01.02.00.019.102
Sounds like a broken experience with facebook integration then.
blocking-b2g: --- → 1.3?
status-b2g18: --- → unaffected
Keywords: regression, regressionwindow-wanted
triage: 1.3+ regrssion
blocking-b2g: 1.3? → 1.3+
(Assignee)

Comment 7

5 years ago
I cannot reproduce this. How do you test that the sync ids working. Are you changing the profile photo to a different one? Are you chaning some Friend data?

How do you configure the timeout for sync? 

In any case please attach the log files. 

thanks
Flags: needinfo?(rkuhlman)
Created attachment 8358016 [details]
log.txt

To determine whether data was being updated or not, I would set all of the friend profile's info to be private (phone number, email address, home address) when the profile is downloaded to the device. Afterwards, I set all of the private info to be public. After syncing, this now-public info should be copied to the contact info on the device.

As for configuring the sync timeout, I tried three methods, all without success. I manually changed the date on the device to be 24 hours in the future. I also tried simply waiting 24 hours and checking the device again. Lastly, I tried to reconfigure the config.json file to update every 5 minutes, using the steps demonstrated here: https://docs.google.com/a/qanalydocs.com/document/d/1EFaEKo-YskzU7RoilIZsQmTfnLwwEPJEZtxN8O-Mc7A/edit
In all three situations, the profile info was not updated.

I have attached a logcat of the user manually changing the date, and Facebook not updating the profile information.
Flags: needinfo?(rkuhlman)
(Assignee)

Updated

5 years ago
Assignee: nobody → jmcf
Target Milestone: --- → 1.3 C2/1.4 S2(17jan)
(Assignee)

Comment 9

5 years ago
Seeing your logs, the alarm is properly raised. I cannot reproduce it in my environment

Please could you try with a simpler use case, for instance changing the Friend's photo?

thanks
(Assignee)

Updated

5 years ago
Flags: needinfo?(rkuhlman)

Updated

5 years ago
Keywords: regressionwindow-wanted → qawanted
Created attachment 8358537 [details]
logcat of FB profile pic changing.

The Profile picture is being updated when the date is changed. 
Repro Steps:
1) Download FB profile to device.
2) Change FB profile picture on a different computer.
3) Manually adjust the date on the device to be one day in the future.
Result:
Profile picture on device is updated properly.
Flags: needinfo?(rkuhlman)
(Assignee)

Comment 11

5 years ago
mmmm then the sync process is working properly. Can you check that other fields, email, phone, address are properly updated? If so, there can an issue on the FB side that does not consider a user as updated when changing info from private to public and viceversa. 

Can you test also changing the field visibility and then change photo and see what happens? if all the public info is updated properly?

thanks
Flags: needinfo?(rkuhlman)

Updated

5 years ago
Keywords: qawanted → regressionwindow-wanted
Created attachment 8358649 [details]
All Facebook Details Changed From Private To Public Log

It appears that the only profile setting that is updated is the profile image. I set every possible setting to be private, and downloaded the profile to my device. Afterwards, I modified the profile to make every possible setting public. Then I adjusted the date on my device to force an update. Upon examining the Facebook contact, only the image had changed. No new information appears to have been downloaded.

1.3 Environmental Variables:
Device: Buri 1.3 MOZ
BuildID: 20140109004002
Gaia: 22bc6be5b76cdc6d4e9667ff070979041a20ce2f
Gecko: 2c8f8683bd0d
Version: 28.0a2
Firmware Version: 20131115

SIDE NOTE: while doing this, I also noticed that 'work' phone numbers on the profile are saved on the device as 'personal' phone numbers.
Flags: needinfo?(rkuhlman)
(Assignee)

Comment 13

5 years ago
(In reply to rkuhlman from comment #12)
> Created attachment 8358649 [details]
> All Facebook Details Changed From Private To Public Log
> 
> It appears that the only profile setting that is updated is the profile
> image. I set every possible setting to be private, and downloaded the
> profile to my device. Afterwards, I modified the profile to make every
> possible setting public. Then I adjusted the date on my device to force an
> update. Upon examining the Facebook contact, only the image had changed. No
> new information appears to have been downloaded.

I will try to reproduce this situation myself. 

> 
> 1.3 Environmental Variables:
> Device: Buri 1.3 MOZ
> BuildID: 20140109004002
> Gaia: 22bc6be5b76cdc6d4e9667ff070979041a20ce2f
> Gecko: 2c8f8683bd0d
> Version: 28.0a2
> Firmware Version: 20131115
> 
> SIDE NOTE: while doing this, I also noticed that 'work' phone numbers on the
> profile are saved on the device as 'personal' phone numbers.

That's the desired behaviour. Although once bug 925566 lands all FB info will be categorized as 'other' (as requested by UX). 

thanks for the help and testing

Updated

5 years ago
QA Contact: mvaughan

Comment 14

5 years ago
This issue looks to have started reproducing on the 08/26/13 1.2 build.

This issue reproduces on the first working 1.3 build from 09/19/13. When 1.2 became Aurora (master was 1.3), this issue stopped reproducing on the 1.2 build. Therefore it appears this issue went from 1.2 to 1.3 on the master branch.

** The 08/25/13 1.2 build is broken **

- Works -
Environmental Variables:
Device: Buri v1.2 MOZ RIL
BuildID: 20130824040225
Gaia: 42d88f26420b6c58621d1b68675d512fd10c9fcb
Gecko: 17143a9a0d83
Version: 26.0a1
Firmware Version: V1.2_US_20131115

- Broken -
Environmental Variables:
Device: Buri v1.2 MOZ RIL
BuildID: 20130826163255
Gaia: 23343e6ea3cc59c3ab0ac9188aaa657bd11da4fd
Gecko: 14b1e8c2957e
Version: 26.0a1
Firmware Version: V1.2_US_20131115
Keywords: regressionwindow-wanted
Whiteboard: burirun1.3-1 → burirun1.3-1, burirun 1.3-2

Updated

5 years ago
Target Milestone: 1.3 C2/1.4 S2(17jan) → 1.3 C3/1.4 S3(31jan)

Updated

5 years ago
Whiteboard: burirun1.3-1, burirun 1.3-2 → burirun1.3-1, burirun 1.3-2 [mwcdemo2014]
(Assignee)

Comment 15

5 years ago
I've been testing this with latest builds I can't repro it. Please could you check is reproducible in your latest 1.3 builds? We've been landing serveral bugs in FB and datastore that probably have fixed any issue related to this

thanks!
Flags: needinfo?(rkuhlman)
I am still seeing the issue in todays build. I changed the profile picture, phone number, and hometown on 
a friend profile. I saved the changes, then manually adjusted the date on my device to one day in the future. On my device, the profile picture is updated, but the phone number and hometown did not change.

Environmental Variables:
Device: Buri v1.3 Moz RIL
BuildID: 20140131004001
Gaia: 0ddcd8da5bfe1b48c73502ef29220e92f2db6b73
Gecko: 32e45047b663
Version: 28.0a2
Firmware Version: v1.2-device.cfg
Flags: needinfo?(rkuhlman)
(In reply to rkuhlman from comment #16)
> I am still seeing the issue in todays build. I changed the profile picture,
> phone number, and hometown on 
> a friend profile. I saved the changes, then manually adjusted the date on my
> device to one day in the future. On my device, the profile picture is
> updated, but the phone number and hometown did not change.
> 
> Environmental Variables:
> Device: Buri v1.3 Moz RIL
> BuildID: 20140131004001
> Gaia: 0ddcd8da5bfe1b48c73502ef29220e92f2db6b73
> Gecko: 32e45047b663
> Version: 28.0a2
> Firmware Version: v1.2-device.cfg

Did you make sure to kill & restart the contacts app when changing the date into the future?
Flags: needinfo?(rkuhlman)
Created attachment 8368852 [details]
FacebookProfileUpdateDetails.txt

Now with repro steps:

Prerequisites: Have access to two Facebook profiles, Profile A and Profile B. A and B must be friends with each other. Have a FxOS device that is not associated with any Facebook account.

1) On a PC, sign into Profile B, navigate to 'Edit Profile' and ensure that EVERY profile detail is filled out and set to 'Private'. Save any changes.
2) On FxOS device, launch Contacts app, sign into Profile A, and import Profile B from Facebook to your device.
3) On FxOS device, observe contact details for Profile B.
4) On PC, navigate to 'Edit Profile' and set EVERY profile detail to 'Public', and change profile picture. Save all changes.
5) On FxOS device, launch Settings app and manually adjust device date to be one day in the future.
6) On FxOS device, launch Contacts app and observe contact details for Profile B.

Actual Result:
Profile picture is updated, but all other contact details are unaffected.

Expected Result:
Profile picture is updated, and public content is now displayed on device.

Notes:
The profile information will be properly presented if the contact is manually deleted and then re-imported.
Flags: needinfo?(rkuhlman)
In reply to question from comment 17:

I tried both options: 
1) Force close contacts app, manually adjust date, relaunch contacts app.
2) Manually adjust date while contacts app is still open.

In both cases, the contacts details are not updated. I had to manually delete the contact and re-import it in order to update the details.
(Assignee)

Comment 20

5 years ago
There is an old Facebook bug concerning changes in the visibility mode which are not counted as changes when we ask for synchronization. Please, could you test this bug by making changes in data and not in its visibility?
Flags: needinfo?(rkuhlman)
(In reply to Jose M. Cantera from comment #20)
> There is an old Facebook bug concerning changes in the visibility mode which
> are not counted as changes when we ask for synchronization. Please, could
> you test this bug by making changes in data and not in its visibility?

Can you clarify this a bit more? I'm having some difficulty following what is meant by data changes vs. visibility.
(Assignee)

Comment 22

5 years ago
(In reply to Jason Smith [:jsmith] from comment #21)
> (In reply to Jose M. Cantera from comment #20)
> > There is an old Facebook bug concerning changes in the visibility mode which
> > are not counted as changes when we ask for synchronization. Please, could
> > you test this bug by making changes in data and not in its visibility?
> 
> Can you clarify this a bit more? I'm having some difficulty following what
> is meant by data changes vs. visibility.

Changing visibility of data means changing the protection level (private, public, friends-only, etc.). Changing data means changing the data itself, such as changing your phone number, company name and the like.

Comment 23

5 years ago
Can we get ETA to fix this bug? Thank you.
(Assignee)

Comment 24

5 years ago
I have my doubts this is a real bug on Gaia side. The situation described by the reporter seems to describe a FB Platform bug. But we need more input from the reporter asap.

thanks
Can we get a detailed clarification of what's the difference here in terms of behavior on 1.1 vs. 1.3?
Keywords: qawanted
marcia to work offline to get a clear data set regarding behavior.
Flags: needinfo?(mozillamarcia.knous)

Comment 27

5 years ago
(In reply to Jason Smith [:jsmith] from comment #25)
> Can we get a detailed clarification of what's the difference here in terms
> of behavior on 1.1 vs. 1.3?

Please follow this link to a Google spreadsheet outlining what is seen in the 02/05/14 1.1 versus the 02/03/14 1.3 builds. I tested changing the visibility and the actual data of just about everything (even the contact data that isn't shown in the Contacts app). Overall, 1.1 updated as expected and 1.3 did not.

https://docs.google.com/a/qanalydocs.com/spreadsheet/ccc?key=0Am7r1cdVu7ZodDNKTVBwSE81Vm1IMlBkYmpSZmM2aXc&usp=drive_web#gid=0
Flags: needinfo?(rkuhlman)
Keywords: qawanted
Jose - Does the spreadsheet analysis help here?
Flags: needinfo?(mozillamarcia.knous) → needinfo?(jmcf)
(Assignee)

Comment 29

5 years ago
Created attachment 8371309 [details]
16024.html
Attachment #8371309 - Flags: review?(crdlc)
Flags: needinfo?(jmcf)
Comment on attachment 8371309 [details]
16024.html

Good job!
Attachment #8371309 - Flags: review?(crdlc) → review+
(Assignee)

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Uplifted 0417f87b62b9b7ebbc48c1e9e1e3a144e0b64d70 to:
v1.3: fffc09cf456a1bf715f8f060a54c3624b6df9e64
status-b2g-v1.3: affected → fixed
You need to log in before you can comment on or make changes to this bug.