Closed Bug 568136 Opened 15 years ago Closed 15 years ago

Migration requires client to check for a node again after a 401.

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: zandr, Assigned: Mardak)

Details

(Whiteboard: [fixed-1.3.1])

Attachments

(1 file, 2 obsolete files)

When we migrate users we change their primaryNode in LDAP. This means that sync attempts against the old node will 401. Disconnect/Reconnect is sufficient to make things work again, but this needs to be seamless. Per mconnor, right solution it to catch a 401 during sync and log out/log in.
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → 1.4
Attached patch v1 (obsolete) — Splinter Review
Assignee: nobody → edilee
Attachment #449144 - Flags: review?(mconnor)
Comment on attachment 449144 [details] [diff] [review] v1 other places to deal with off the top of my head: * heartbeat * fx tabs page * fennec tabs page
Attachment #449144 - Flags: review?(mconnor) → review-
Attached patch v2 (obsolete) — Splinter Review
Components.utils.import("resource://weave/service.js"); Weave.Service.clusterURL = "https://sj-weave06.services.mozilla.com/"; doing a sync: 2010-06-03 17:41:57 Service.Main DEBUG Caching URLs under storage user base: https://sj-weave06.services.mozilla.com/1.0/edtest/ 2010-06-03 17:42:02 Net.Resource DEBUG GET fail 401 https://sj-weave06.services.mozilla.com/1.0/edtest/info/collections 2010-06-03 17:42:02 Service.Main DEBUG Finding cluster for user edtest 2010-06-03 17:42:03 Net.Resource DEBUG GET success 200 https://auth.services.mozilla.com/user/1.0/edtest/node/weave 2010-06-03 17:42:03 Service.Main DEBUG cluster value = https://sj-weave07.services.mozilla.com/ 2010-06-03 17:42:03 Service.Main DEBUG Caching URLs under storage user base: https://sj-weave07.services.mozilla.com/1.0/edtest/ 2010-06-03 17:42:03 Net.Resource DEBUG GET success 200 https://sj-weave07.services.mozilla.com/1.0/edtest/info/collections
Attachment #449144 - Attachment is obsolete: true
Attachment #449162 - Flags: review?(mconnor)
Attached patch v2.1Splinter Review
Attachment #449162 - Attachment is obsolete: true
Attachment #449163 - Flags: review?(mconnor)
Attachment #449162 - Flags: review?(mconnor)
Comment on attachment 449163 [details] [diff] [review] v2.1 yeah, that's good. doing our own URL munging makes me twitchy, but I think it's okay and necessary here.
Attachment #449163 - Flags: review?(mconnor) → review+
http://hg.mozilla.org/labs/weave/rev/5346547346ae Allow observers to watch for resource 401s and to specify a new uri to request. Test to make sure "weave:resource:status:401" gets notified and resource handles uri changes.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
For 1.3.x branch http://hg.mozilla.org/labs/weave/rev/77c464bd3f3a Allow observers to watch for resource 401s and to specify a new uri to request.
Whiteboard: [fixed-1.3.1]
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: